11/18/2023 0 Comments Ubuntu install docker![]() ![]() You will see output close to the one below. sudo add-apt-repository "deb bionic stable" The following command will add deb bionic stable to the sources.list file for you: /etc/apt/sources.list. Now we are going to add the official Docker repository for Ubuntu 20.04. If you see OK output, the Docker key has been successfully added. Next, we’ll add the Docker key to stop a man-in-middle assault and make sure you download the actual file from. The following NEW packages will be installed:Ġ upgraded, 2 newly installed, 0 to remove and 31 not upgraded.Īfter this operation, 206 kB of additional disk space will be used.ĭo you want to continue? Set up the official Docker key Software-properties-common is already the newest version (0.98.9). Reading package lists… DoneĬa-certificates is already the newest version (20190110ubuntu1).Ĭurl is already the newest version (7.68.0-1ubuntu2). ![]() Type “Y” and click enter, or press enter to proceed to download and install them. sudo apt update sudo apt install \Īfter executing the above commands, you can see the following output to review for certain information of the Ubuntu 20.04 installation of Docker, such as what new programs must be installed and how much storage space it requires. ![]() You may have already installed them, so using apt update won’t change anything. They include apt-transport-https, ca-certificates, curl, gnupg-agent, and software-properties-common. Software needed to set up Docker keyįirst, we are going to install the software need for Docker installation on Ubuntu 20.04. This is required for Docker system-wide installation on Ubuntu 20.04. You should have root access to the user you used to log in to Ubuntu 20.04. To install Docker on Ubuntu 20.04, you’ll need to have access to the terminal, or you’ll need to be able to login to your Ubuntu 20.04 computer via ssh. For more information on using Docker and its features, visit the official Docker documentation. You can now start using Docker to create, deploy, and manage your containerized applications. ConclusionĬongratulations! You have successfully installed Docker on your Ubuntu 22.04 system. If you want to use Docker without typing ‘sudo’ every time, add your user to the ‘docker’ group with the following command: sudo usermod -aG docker $USERĪfter running this command, log out and log back in for the changes to take effect. To enable the Docker service to start automatically at boot, run: sudo systemctl enable docker Step 7: Running Docker without sudo (optional)īy default, Docker requires sudo privileges to run. If the Docker service is not running, you can start it with: sudo systemctl start docker To check the status of the Docker service, run: sudo systemctl status docker You should see output similar to this, indicating the installed Docker version:ĭocker should now be installed and running as a background service. To verify that Docker has been installed successfully, run the following command: sudo docker -version Then, install Docker with the following command: sudo apt install docker-ce docker-ce-cli containerd.io Step 5: Verify Docker installation Now that we have added the Docker repository, update your package index: sudo apt update Then, add the Docker repository to your system with the following command: echo "deb $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null Step 4: Install Docker First, add the GPG key for the Docker repository: curl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg Next, we will add the official Docker repository to our system. Run the following command to install them: sudo apt install apt-transport-https ca-certificates curl software-properties-common Step 3: Add Docker repository To install Docker on Ubuntu, we need to install some necessary dependencies first. Open the terminal and run the following commands: sudo apt update sudo apt upgrade Step 2: Install required dependencies Prerequisitesīefore installing any new software, it’s always a good idea to update your system packages. Next, we will cover the necessary system requirements and prerequisites for a successful installation. We will begin by discussing the benefits of using Docker and why it is essential for modern development workflows. In this tutorial, we will guide you through the process of installing Docker on Ubuntu 22.04, the latest long-term support (LTS) release of this popular Linux distribution. Docker has revolutionized the way developers create, deploy, and manage applications by enabling lightweight containerization technology, which allows for easy management and isolation of applications and their dependencies.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |