Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install docker-ce on Ubuntu 16.04 #163

Closed
gtzinos opened this issue Nov 15, 2017 · 3 comments
Closed

Can't install docker-ce on Ubuntu 16.04 #163

gtzinos opened this issue Nov 15, 2017 · 3 comments

Comments

@gtzinos
Copy link

gtzinos commented Nov 15, 2017

Hi all,

I am following the guide to install docker-ce on a2hosting virtual server. Vm uses an old kernel and i can't upgrade it cause it is vm and not a dedicated server. So when i execute the command sudo apt-get install docker-ce it returns me the following error message:

docker.service - Docker Application Container Engine
  Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
  Active: activating (auto-restart) (Result: exit-code) since Wed 2017-11-15 09:40:11 EST; 4ms ago
    Docs: https://docs.docker.com
 Process: 1604 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 1604 (code=exited, status=1/FAILURE)

Nov 15 09:40:11 server systemd[1]: Failed to start Docker Application Container Engine.
Nov 15 09:40:11 server systemd[1]: docker.service: Unit entered failed state.
Nov 15 09:40:11 server systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up liberror-perl (0.17-1.2) ...
Setting up git-man (1:2.7.4-0ubuntu1.3) ...
Setting up git (1:2.7.4-0ubuntu1.3) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
@thaJeztah
Copy link
Member

@seemethere
Copy link

Closing due to inactivity

@JoshuaJoma
Copy link

Hi,
similar issue with me.
Try to install docker-ce inside a virtual server with Ubuntu16.04 like mentioned at https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

Kernel:

root@vxccd:~# uname -a
Linux vxccd.de 4.4.0-042stab133.2 #1 SMP Mon Aug 27 21:07:08 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux

Failure of check-config.sh

root@vxccd:~# bash check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config ...
error: cannot find kernel config
try running this script again, specifying the kernel config:
CONFIG=/path/to/kernel/.config check-config.sh or check-config.sh /path/to/kernel/.config

A Search with find doesn't offer any file named config.gz

Here the logs:

root@vxccd:~# sudo apt-get install -y docker-ce


> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut.
> Statusinformationen werden eingelesen.... Fertig
> The following additional packages will be installed:
> aufs-tools cgroupfs-mount
> Die folgenden NEUEN Pakete werden installiert:
> aufs-tools cgroupfs-mount docker-ce
> 0 aktualisiert, 3 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
> Es müssen noch 0 B von 40,1 MB an Archiven heruntergeladen werden.
> Nach dieser Operation werden 198 MB Plattenplatz zusätzlich benutzt.
> Vormals nicht ausgewähltes Paket aufs-tools wird gewählt.
> (Lese Datenbank ... 120626 Dateien und Verzeichnisse sind derzeit installiert.)
> Vorbereitung zum Entpacken von .../aufs-tools_1%3a3.2+20130722-1.1ubuntu1_amd64.deb ...
> Entpacken von aufs-tools (1:3.2+20130722-1.1ubuntu1) ...
> Vormals nicht ausgewähltes Paket cgroupfs-mount wird gewählt.
> Vorbereitung zum Entpacken von .../cgroupfs-mount_1.2_all.deb ...
> Entpacken von cgroupfs-mount (1.2) ...
> Vormals nicht ausgewähltes Paket docker-ce wird gewählt.
> Vorbereitung zum Entpacken von .../docker-ce_18.06.1~ce~3-0~ubuntu_amd64.deb ...
> Entpacken von docker-ce (18.06.1~ce~3-0~ubuntu) ...
> Trigger für libc-bin (2.23-0ubuntu10) werden verarbeitet ...
> Trigger für man-db (2.7.5-1) werden verarbeitet ...
> Trigger für systemd (229-4ubuntu21.4) werden verarbeitet ...
> aufs-tools (1:3.2+20130722-1.1ubuntu1) wird eingerichtet ...
> cgroupfs-mount (1.2) wird eingerichtet ...
> docker-ce (18.06.1~ce~3-0~ubuntu) wird eingerichtet ...
> Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript docker, action "start" failed.
> ? docker.service - Docker Application Container Engine
> Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
> Active: activating (auto-restart) (Result: exit-code) since Mi 2018-10-10 14:57:51 CEST; 7ms ago
> Docs: https://docs.docker.com
> Process: 31656 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
> Main PID: 31656 (code=exited, status=1/FAILURE)
> dpkg: Fehler beim Bearbeiten des Paketes docker-ce (--configure):
> Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
> Trigger für libc-bin (2.23-0ubuntu10) werden verarbeitet ...
> Trigger für systemd (229-4ubuntu21.4) werden verarbeitet ...
> Fehler traten auf beim Bearbeiten von:
> docker-ce
> E: Sub-process /usr/bin/dpkg returned an error code (1)

For sudo systemctl status docker

root@vxccd:~# sudo systemctl status docker
? docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Mi 2018-10-10 14:57:52 CEST; 15s ago
Docs: https://docs.docker.com
Process: 31757 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 31757 (code=exited, status=1/FAILURE)

Und für journalctl -xe

root@vxccd:~# journalctl -xe
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.258937996+02:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.263276662+02:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.266222956+02:00" level=warning msg="Your kernel does not support oom control"
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.266253933+02:00" level=warning msg="Your kernel does not support memory swappiness"
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.266275329+02:00" level=warning msg="Your kernel does not support kernel memory limit"
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.266289301+02:00" level=warning msg="Unable to find cpu cgroup in mounts"
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.266348877+02:00" level=warning msg="Unable to find cpuset cgroup in mounts"
Okt 10 14:57:52 vxccd.de dockerd[31757]: time="2018-10-10T14:57:52.266413532+02:00" level=warning msg="mountpoint for pids not found"
Okt 10 14:57:52 vxccd.de dockerd[31757]: Error starting daemon: Devices cgroup isn't mounted

Help is appreciated.

Thanks,
Uwe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants