When the container runs, it prints a message and exits.Ĭonfiguring remote access with systemd unit file This command downloads a test image and runs it in a container. Verify that you can run docker commands without sudo. On Linux, you can also run the following command to activate the changes to groups: On a desktop Linux environment such as X Windows, log out of your session completely and then log back in. If testing on a virtual machine, it may be necessary to restart the virtual machine for changes to take effect. Log out and log back in so that your group membership is re-evaluated. Verify that Docker Engine is installed correctly by running the hello-world image. $ sudo apt-get install docker-ce docker-ce-cli containerd.io Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version: $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null Use the following command to set up the stable repository. $ curl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg $ sudo apt-get install ca-certificates curl gnupg lsb-release Update the apt package index and install packages to allow apt to use a repository over HTTPS:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |