Site Tools


linux:ubuntu:docker

This is an old revision of the document!


OpenVAS

Installation

Add repository and install

curl -sSL https://get.docker.com | sh

Configuration

Commands

Command Function

Troubleshooting

Cant install docker-ce

Installation with the following command doesnt work

curl -sSL https://get.docker.com | sh

# Executing docker install script, commit: f45d7c11389849ff46a6b4d94e0dd1ffebca32c1
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
+ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null

Broadcast message from systemd-journald@lunetikk (Wed 2019-10-23 00:22:12 CEST):

systemd[1]: Caught <SEGV>, dumped core as pid 26368.


Broadcast message from systemd-journald@lunetikk (Wed 2019-10-23 00:22:12 CEST):

systemd[1]: Freezing execution.

E: Sub-process /usr/bin/dpkg returned an error code (1)

Rerun “apt-get install docker-ce” shows the following

apt-get install docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-ce is already the newest version (5:19.03.4~3-0~ubuntu-xenial).
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up docker-ce (5:19.03.4~3-0~ubuntu-xenial) ...
Failed to execute operation: Connection timed out
Failed to execute operation: Connection timed out
Failed to retrieve unit state: Connection timed out
Failed to start docker.service: Connection timed out
See system logs and 'systemctl status docker.service' for details.
invoke-rc.d: initscript docker, action "start" failed.
Failed to get properties: Connection timed out
dpkg: error processing package docker-ce (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

You cant even reconfigure

dpkg-reconfigure docker-ce
/usr/sbin/dpkg-reconfigure: docker-ce is broken or not fully installed

Reason:

Fix:


linux/ubuntu/docker.1571784355.txt.gz · Last modified: 2019/10/23 00:45 by lunetikk