Verify Docker is correctly installed by running the “hello-world” image. This is recommended if you intend on running a production application within this Docker installation. Optionally configure Docker to start when the server boots up. Sudo apt install docker-ce docker-ce-cli containerd.ioĪdditional installation instructions for these distributions can be found within Docker’s documentation:Īfter Docker Engine is installed, start Docker and verify everything is working by running a test image.Įnsure that the Docker server is running. Install Docker Engine and other required packages: sudo apt update echo "deb $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null curl -fsSL /gpg | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgĪdd the stable Docker repository, again replacing with the url that corresponds with the distribution your system is running. In the following command, replace with the url that corresponds with the distribution your system is running. Sudo apt install apt-transport-https ca-certificates curl gnupg lsb-releaseĪdd Docker’s GPG key. Install the packages that are required to configure Docker’s repository: sudo apt update sudo apt remove docker docker-engine docker.io Output indicating that any of the packages aren’t found can be safely ignored. Recent non-LTS releases like Ubuntu 21.04, 20.10, and 21.10 should also be supported.Įnsure Docker is not currently installed. Supported distributions: Ubuntu 20.04, Ubuntu 18.04, Ubuntu 16.04, Debian 10, Debian 9. The following instructions will install Docker Engine on one of these supported Ubuntu and Debian releases: Installing Docker Engine on Ubuntu and Debianĭocker Engine is the underlying containerization software used when deploying Docker containers. Review the following Docker guides to gain a better understanding of Docker, its benefits, and when to use it. If you’re not familiar with the sudo command, see the Users and Groups guide. Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |