![]() Get the command line of the installed container: docker attach test Uninstallation docker pull debianĬreate container: docker create -it -name test debian In this example, we are downloading the Debian docker image and creating a container using it. Now, we can use the Docker command to start creating the required containers, here is an example if you are new to it. sudo snap disable docker sudo snap enable docker Step 5: Create your first Container You also need to disable and enable Snap’s Docker service to apply the changes you have made. Sometimes, even after running newgrp command terminal couldn’t recognize the added user in the group immediately, in such a case simply log out and log in again. sudo addgroup -system docker Step 4: Run Docker Command without sudoĪfter adding the docker group also add your current user in it, so that you can use Docker commands without sudo rights. Therefore, use the given command to add a group called – Docker. And we need it, if we want to use the Docker command without sudo. Unlike Docker installation using the APT package manager SNAP will not create a group called ‘docker’ by default. The process could take some as SNAP downloads all the required files for setting up Docker. So, on your command terminal, just run the given command and you will have the latest version of Docker. In all modern Ubuntu systems, Snap is available as a pre-configured package manager to use for installing a wide range of applications in an isolated environment. ![]() sudo apt update & sudo apt upgrade Step 2: Install Docker via SNAP However, it is better to update your packages for better security. Step 1: Update System PackagesĪlthough it is not necessary to start with the system update command on Terminal because we are about to use the SNAP command line. ![]() We don’t need any special requirements to follow this tutorial, just like to install any other software on Ubuntu you also need sudo privileges for Snap commands as well.
0 Comments
Leave a Reply. |