sudo apt-get install docker-ce=19.03.12~3-0~ubuntu-focal docker-ce-cli=19.03.12~3-0~ubuntu-focal containerd.io Run docker container Here is the example command for installing docker 19.03.12~3-0~ubuntu-focal. To list the available versions of docker, run the following command in the terminal – sudo apt-cache madison docker-ce List docker versions sudo apt-get install docker-ce=(docker_version) docker-ce-cli=(docker_version) containerd.io Or, install any specific docker version please mention the version number in the package name. Install the latest docker version using the following command – sudo apt-get install docker-ce docker-ce-cli containerd.io Install specific version of docker sudo apt-get update Install latest version of docker ![]() Now update the apt cache and install the latest docker. The docker repository is now added to your distro. sudo add-apt-repository "deb $(lsb_release -cs) stable" Add docker repository Update system If you are using any distro that is based on Ubuntu, then replace the command $(lsb_release -cs) with the codename of the Ubuntu version that your distro is based on.įor example, if you are using Elementary OS Hera, then you will have to replace $(lsb_release -cs) with bionic because its codebase is bionic. ![]() Before using the following command, please note that the following command should run perfectly fine on versions from Ubuntu 16.04 to Ubuntu 20.04. sudo apt install apt-transport-https ca-certificates curl software-properties-common Install apt transport HTTPS support Add docker GPG keyĪdd the docker’s GPG key to your distro – $ curl -fsSL | sudo apt-key add - Add docker GPG key Add docker repository Next up, install the packages that will let apt install packages over HTTPS. sudo apt remove docker docker-engine docker.io The following guide will install the latest version of docker containers, so get rid of the existing setup. To install docker on Ubuntu using this guide, please remove any existing version. How to install Docker on Ubuntu? Uninstall old docker version ![]() Use apt to check & install any pending update – sudo apt updateĪfter all the updates are installed, we are ready to start the docker installation. Before we move forward, make sure that your distro is up-to-date. If you are using Ubuntu 16.04 or newer, you can follow this guide to install docker containers. You can install docker easily on all Linux distributions. You can learn more about docker containers and how to create docker containers in the following article – What is docker container? It uses libcontainer to use resource isolation features of the Linux kernel. Docker was developed by Solomon Hykes and Sebastien Pahl and publicly released in 2013.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |