{"id":927,"date":"2019-10-10T08:59:20","date_gmt":"2019-10-10T13:59:20","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=927"},"modified":"2019-10-10T08:59:20","modified_gmt":"2019-10-10T13:59:20","slug":"how-to-install-docker-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/","title":{"rendered":"How to Install Docker on Ubuntu 18.04"},"content":{"rendered":"<div id=\"linux-3644539313\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04.<\/p>\n<p>Docker is mainly a software development platform and a kind of virtualization technology that makes it easy to develop and deploy apps inside of neatly packaged virtual containerized environments. Docker containers can be deployed to any machine without any compatibility issues, so the software stays system agnostic, simpler to use, less work to develop and easy to maintain and deploy.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-930\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/installing-docker-setup-for-ubuntu18.04-vps.jpg\" alt=\"\" width=\"150\" height=\"128\" \/>Docker is a form of virtualization but, unlike a Virtual Machine, the resources are shared directly with the host. Let&#8217;s begin with the installation.<\/p>\n<p><!--more--><\/p>\n<h2><strong>Requirements:<\/strong><\/h2>\n<ul>\n<li>For the purposes of this tutorial, we will use an Ubuntu 18.04 VPS.<\/li>\n<li>Full SSH root access or a user with sudo privileges is also required.<\/li>\n<\/ul>\n<h2><span id=\"1-Connect-via-SSH\" class=\"ez-toc-section\">Step 1. Connect via SSH<\/span><\/h2>\n<p>Connect to your server via SSH as the root user using the following command:<\/p>\n<pre>ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\n<p>and replace \u201cIP_ADDRESS\u201d and \u201cPORT_NUMBER\u201d with your actual server IP address and SSH port number.<\/p>\n<p>Before starting with the installation you will need to update your system packages to their latest version.<\/p>\n<p>You can do this by running the following command:<\/p>\n<pre>apt-get update \r\napt-get upgrade<\/pre>\n<p>Once the upgrade is completed we can move on to the next step.<\/p>\n<h2><span id=\"2-Install-Redis-on-Ubuntu-1604\" class=\"ez-toc-section\">Step 2. Install Docker on Ubuntu 18.04<\/span><\/h2>\n<p>To get the latest version of Docker, we will install it from the official Docker repository. We will add a new package source, and add the GPG key from Docker to be able to verify that the downloads are valid.<\/p>\n<p>We need to install a few prerequisite packages with the following command:<\/p>\n<pre>sudo apt install apt-transport-https ca-certificates curl software-properties-common<\/pre>\n<p>Now, we will add the GPG key for the official Docker repository and add the Docker repository to APT sources with the following commands:<\/p>\n<pre>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\r\nsudo add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu bionic stable\"<\/pre>\n<p>Next, we will update the package database with the Docker packages:<\/p>\n<pre>sudo apt update<\/pre>\n<p>and make sure that we will install Docker from the Docker repo instead of the Ubuntu repo:<\/p>\n<pre>apt-cache policy docker-ce<\/pre>\n<p>The output should be similar to this:<\/p>\n<pre>docker-ce:\r\nInstalled: (none)\r\nCandidate: 5:18.09.5~3-0~ubuntu-bionic\r\nVersion table:\r\n5:18.09.5~3-0~ubuntu-bionic 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n5:18.09.4~3-0~ubuntu-bionic 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n5:18.09.3~3-0~ubuntu-bionic 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n5:18.09.2~3-0~ubuntu-bionic 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n5:18.09.1~3-0~ubuntu-bionic 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n5:18.09.0~3-0~ubuntu-bionic 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n18.06.3~ce~3-0~ubuntu 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n18.06.2~ce~3-0~ubuntu 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n18.06.1~ce~3-0~ubuntu 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n18.06.0~ce~3-0~ubuntu 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages\r\n18.03.1~ce~3-0~ubuntu 500\r\n500 https:\/\/download.docker.com\/linux\/ubuntu bionic\/stable amd64 Packages<\/pre>\n<p>Finally, we will install Docker with the following command:<\/p>\n<pre>sudo apt install docker-ce<\/pre>\n<p>To check that Docker is installed, daemon started and the process enabled execute the following command:<\/p>\n<pre>sudo systemctl status docker<\/pre>\n<p>The output should be similar to the following:<\/p>\n<pre> docker.service - Docker Application Container Engine\r\n\u00a0 \u00a0 \u00a0 \u00a0Loaded: loaded (\/lib\/systemd\/system\/docker.service; enabled; vendor preset: enabled)\r\n\u00a0 \u00a0 \u00a0 \u00a0Active: active (running) since Wed 2019-05-01 11:06:05 UTC; 10s ago\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Docs: https:\/\/docs.docker.com\r\nMain PID: 4234 (dockerd)\r\n\u00a0 \u00a0 \u00a0 \u00a0Tasks: 8\r\n\u00a0 \u00a0 CGroup: \/system.slice\/docker.service\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2514\u25004234 \/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock<\/pre>\n<p>We successfully installed Docker. Now in the next steps, we will show you how to use the docker command.<\/p>\n<h2><span id=\"2-Install-Redis-on-Ubuntu-1604\" class=\"ez-toc-section\">Step 3. Using the Docker Command<\/span><\/h2>\n<p>The syntax of the Docker CLI command takes this form:<\/p>\n<pre>docker [option] [command] [arguments]<\/pre>\n<p>To list all available commands we need to run the docker command with no parameters:.<\/p>\n<pre>docker<\/pre>\n<p>The output should be similar to the following:<\/p>\n<pre>A self-sufficient runtime for containers\r\n\r\nOptions:\r\n--config string Location of client config files (default \"\/root\/.docker\")\r\n-D, --debug Enable debug mode\r\n-H, --host list Daemon socket(s) to connect to\r\n-l, --log-level string Set the logging level (\"debug\"|\"info\"|\"warn\"|\"error\"|\"fatal\") (default \"info\")\r\n--tls Use TLS; implied by --tlsverify\r\n--tlscacert string Trust certs signed only by this CA (default \"\/root\/.docker\/ca.pem\")\r\n--tlscert string Path to TLS certificate file (default \"\/root\/.docker\/cert.pem\")\r\n--tlskey string Path to TLS key file (default \"\/root\/.docker\/key.pem\")\r\n--tlsverify Use TLS and verify the remote\r\n-v, --version Print version information and quit\r\n\r\nManagement Commands:\r\nbuilder     Manage builds\r\nconfig      Manage Docker configs\r\ncontainer   Manage containers\r\nengine      Manage the docker engine\r\nimage       Manage images\r\nnetwork     Manage networks\r\nnode        Manage Swarm nodes\r\nplugin      Manage plugins\r\nsecret      Manage Docker secrets\r\nservice     Manage services\r\nstack       Manage Docker stacks\r\nswarm       Manage Swarm\r\nsystem      Manage Docker\r\ntrust       Manage trust on Docker images\r\nvolume      Manage volumes\r\n\r\nCommands:\r\n\u00a0 attach      Attach local standard input, output, and error streams to a running container\r\n  build       Build an image from a Dockerfile\r\n  commit      Create a new image from a container's changes\r\n  cp          Copy files\/folders between a container and the local filesystem\r\n  create      Create a new container\r\n  diff        Inspect changes to files or directories on a container's filesystem\r\n  events      Get real time events from the server\r\n  exec        Run a command in a running container\r\n  export      Export a container's filesystem as a tar archive\r\n  history     Show the history of an image\r\n  images      List images\r\n  import      Import the contents from a tarball to create a filesystem image\r\n  info        Display system-wide information\r\n  inspect     Return low-level information on Docker objects\r\n  kill        Kill one or more running containers\r\n  load        Load an image from a tar archive or STDIN\r\n  login       Log in to a Docker registry\r\n  logout      Log out from a Docker registry\r\n  logs        Fetch the logs of a container\r\n  pause       Pause all processes within one or more containers\r\n  port        List port mappings or a specific mapping for the container\r\n  ps          List containers\r\n  pull        Pull an image or a repository from a registry\r\n  push        Push an image or a repository to a registry\r\n  rename      Rename a container\r\n  restart     Restart one or more containers\r\n  rm          Remove one or more containers\r\n  rmi         Remove one or more images\r\n  run         Run a command in a new container\r\n  save        Save one or more images to a tar archive (streamed to STDOUT by default)\r\n  search      Search the Docker Hub for images\r\n  start       Start one or more stopped containers\r\n  stats       Display a live stream of container(s) resource usage statistics\r\n  stop        Stop one or more running containers\r\n  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE\r\n  top         Display the running processes of a container\r\n  unpause     Unpause all processes within one or more containers\r\n  update      Update configuration of one or more containers\r\n  version     Show the Docker version information\r\n  wait        Block until one or more containers stop, then print their exit codes<\/pre>\n<p>If you want to see the options available to a specific command, execute the following command:<\/p>\n<pre>docker <em><span class=\"highlight\">docker-subcommand<\/span><\/em> --help<\/pre>\n<p>To view information about Docker:<\/p>\n<pre>docker info<\/pre>\n<h2><span id=\"2-Install-Redis-on-Ubuntu-1604\" class=\"ez-toc-section\">Step 4. The Docker Command Line Interface<\/span><\/h2>\n<p>To search for an image from Docker Hub registry, we can use the following command:<\/p>\n<pre>docker search ubuntu<\/pre>\n<p>To download the official Ubuntu 18.04, we can do this by using the <em>image pull\u00a0<\/em>subcommand:<\/p>\n<pre>docker image pull ubuntu<\/pre>\n<p>If there is no tag specified, Docker will pull the latest image.<\/p>\n<p>We can list the images by using the following command:<\/p>\n<pre>docker image ls<\/pre>\n<p>If you want to remove the image for some reason, you can use the following command:<\/p>\n<pre>docker image rm ubuntu<\/pre>\n<p>If you need to start, stop, remove and manage a container you can do this with the d<em>ocker container\u00a0<\/em>subcommand.<\/p>\n<p>With the following command, we can start a Docker container:<\/p>\n<pre>docker container run ubuntu<\/pre>\n<p>If you need to interact the container via the command line, you can do this executing the following command:<\/p>\n<pre>docker container run -it ubuntu \/bin\/bash<\/pre>\n<p>To list all active containers, type:<\/p>\n<pre>docker container ls<\/pre>\n<p>but if you want to view both active and inactive containers, type:<\/p>\n<pre>docker container ls -a<\/pre>\n<p>To remove docker containers execute the following command:<\/p>\n<pre>docker container rm <em>[container_id]<\/em><\/pre>\n<p>Those are just some of the things you can do with Docker &#8211; it&#8217;s a very versatile program.<\/p>\n<p>In this tutorial, we learned how to install Docker on Ubuntu 18.04 and how to use the docker commands and command line interface.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-931\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/managed-support-help-from-admins-for-docker-ubuntu.jpg\" alt=\"\" width=\"150\" height=\"128\" \/>Of course, you don\u2019t have to install Docker on Ubuntu 18.04 if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Fully-Managed Server Support<\/a> services, in which case you can simply ask our expert system administrators to install Docker on Ubuntu 18.04 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span class=\"amp-wp-inline-f146f9bb819d875bbe5cf83e36368b44\"><strong>PS.<\/strong><\/span>\u00a0If you liked this tutorial on<strong>\u00a0installing Docker on Ubuntu 18.04<\/strong>, or if you found it helpful, please share it with your friends on the social networks by using the share shortcuts below, or simply leave a comment in the comments section. Thank you.<\/p><div id=\"linux-1879708051\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04. Docker is mainly a software development platform and a kind of virtualization technology that makes it easy to develop and deploy apps inside of neatly packaged virtual containerized environments. Docker containers can be deployed to any machine without any compatibility [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":929,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-927","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-miscellaneous"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Docker on Ubuntu 18.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04. Docker is mainly a software development platform and a kind of\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Docker on Ubuntu 18.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04. Docker is mainly a software development platform and a kind of\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-10T13:59:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Docker on Ubuntu 18.04\",\"datePublished\":\"2019-10-10T13:59:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/\"},\"wordCount\":716,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg\",\"articleSection\":[\"Miscellaneous\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/\",\"name\":\"How to Install Docker on Ubuntu 18.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg\",\"datePublished\":\"2019-10-10T13:59:20+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04. Docker is mainly a software development platform and a kind of\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Docker on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Docker on Ubuntu 18.04 | LinuxHostSupport","description":"In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04. Docker is mainly a software development platform and a kind of","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Docker on Ubuntu 18.04 | LinuxHostSupport","og_description":"In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04. Docker is mainly a software development platform and a kind of","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-10-10T13:59:20+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Docker on Ubuntu 18.04","datePublished":"2019-10-10T13:59:20+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/"},"wordCount":716,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg","articleSection":["Miscellaneous"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/","name":"How to Install Docker on Ubuntu 18.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg","datePublished":"2019-10-10T13:59:20+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this tutorial, we will cover the steps needed for installing Docker on Ubuntu 18.04. Docker is mainly a software development platform and a kind of","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-docker-on-ubuntu18.04.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-docker-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Docker on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=927"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/927\/revisions"}],"predecessor-version":[{"id":935,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/927\/revisions\/935"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/929"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}