Unpacking docker-engine (1.11.2-0~xenial). Selecting previously unselected package docker-engine. Selecting previously unselected package cgroupfs-mount. 427978 files and directories currently installed.) Selecting previously unselected package aufs-tools. Get:3 ubuntu-xenial/main amd64 docker-engine amd64 1.11.2-0~xenial Get:2 xenial/universe amd64 cgroupfs-mount all 1.2 The following NEW packages will be installed:Ġ upgraded, 3 newly installed, 0 to remove and 17 not upgraded.Īfter this operation, 73.7 MB of additional disk space will be used. The following additional packages will be installed: Get:28 ubuntu-xenial/main amd64 Packages + sudo -E sh -c sleep 3 apt-get update apt-get install -y -q docker-engine + sudo -E sh -c echo deb ubuntu-xenial main > /etc/apt//docker.list Gpg: key 2C52609D: "Docker Release Tool (releasedocker) " 1 new signature Gpg: requesting key 2C52609D from hkp server ha. Here is a typical output ( ubuntu 16.04 ) apparmor is enabled in the kernel and apparmor utils were already installed # sudo curl -sSL | sh # get dev pipeline version Instead do this : install the latest version of docker on linux by executing the following: sudo apt-get install docker-ceīelow is yet another way to issue the install command sudo curl -sSL | sh NOTE - ubuntu package docker.io is not getting updates ( obsolete do NOT use ) Ii docker-ce-cli 5:19.03.13~3-0~ubuntu-focal amd64 Docker CLI: the open-source application container engine Ii docker-ce 5:19.03.13~3-0~ubuntu-focal amd64 Docker: the open-source application container engine If you see something similar to following then you have docker installed dpkg -l|grep docker Sudo apt-get remove docker # remove the wrong docker If you do see above lets remove it since its the wrong docker If only match is following then you do NOT have docker installed below is an unrelated packageĭocker - System tray for KDE3/GNOME2 docklet applications Issue following to view what if any packages you have mentioning docker dpkg -l|grep docker IMPORTANT - ubuntu package docker is something entirely different ( avoid it ) : Why install docker on ubuntu should be `sudo apt-get install docker.io`? The following explains why it is named like this: If you want to verify that it worked run: Sudo apt-get install docker-ce docker-ce-cli containerd.io However, for those that are security-focused but don't want to read the script you can do the following: The above option is a convenience script from docker to make the task simple. Some in the comments have mentioned that it a risk to run an arbitrary script as sudo. = UPDATE: For those uncomfortable w/ sudo | sh = See the docker install documentation or Stensland's answer below To update Docker run: sudo apt-get update & sudo apt-get upgrade Remember that you will have to log out and back in for this to take effect! Note the last part of the script: If you would like to use Docker as a non-root user, you should now considerĪdding your user to the "docker" group with something like: This will run a script that installs docker. Note: review the script on the website and make sure you have the right link before continuing since you are running this as sudo.You now run the following install script to get docker: curl -sSL | sudo sh The instructions for docker can be followed per instructions on the docker page here: The Ubuntu package docker actually refers to a GUI application, not the beloved DevOps tool we've come out to look for.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |