I’ve been unable to install Docker CE following the instructions on the Docker Docs. The following is my OS version/build information:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" NAME="Ubuntu" VERSION="16.04.3 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.3 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial
I followed the instructions on installing using the repository, not the manual installation. All steps work as instructed except the actual installation:
sudo apt-get install docker-ce
At that point the installation process begins but it gets stuck (I waited for ~4 hours). After interrupting the process
dpkg get locked. If I try using
apt-get it will attempt to resume installing Docker, which doesn’t work. I then have to delete the lock files to be able to use
apt-get for other things.
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock
Any ideas on what could be wrong?