One thing you should do is to add your username to docker group so that you don’t need to use sudo all the time. You need to do some other basic setup and configuration in order to run it smoothly. You have Docker installed but it’s not over just yet. Now you should install Docker and its related packages: sudo apt install docker-ce docker-ce-cli containerd.io Setting up Docker on Ubuntu If you are using Ubuntu 16.04, you may have to update the repository as well: sudo apt update Step 4: Install DockerĮverything is set. Now that you have the repository key added, add the repository itself: sudo add-apt-repository "deb $(lsb_release -cs) stable" Sub rsa4096 Step 3: Add the Docker repository It’s a good idea to verify the key to avoid bad surprises: sudo apt-key fingerprint 0EBFCD88 You can combine both commands with pipe: curl -fsSL | sudo apt-key add. Use the curl command to download the GPG key and then add it using apt-key command. Step 2: Add the official Docker GPG keyīefore you add the new repository from Docker, add its GPG key. Some of the packages might already be installed on your system. You need the following packages for using apt over https: sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common Now the following steps will get you an operational version of Docker CE up and running on your system. sudo apt remove docker docker-engine docker.io containerd runc If you already have any kind of Docker package installed, you should remove them as well to avoid conflict. The first thing you should do is to update your system: sudo apt update So, I presume you have an Ubuntu system installed. They even provide $60 free credits to our readers. You may sign up for Linode and deploy your own Linux server in less than two minutes. Ubuntu also has Docker packages available in their repository, however, I would advise using the community edition.įor this tutorial, I created a new Ubuntu server on Linode. In this article, you’ll learn how to install the latest Docker on Ubuntu and how to configure it.īy latest Docker, I mean the latest Docker Engine Community Edition (CE). This is the first in our Docker tutorial series.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |