Code: Select all
curl -sSL https://get.docker.com | sh
Code: Select all
# Executing docker install script, commit: 4957679
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sudo -E sh -c curl -fsSL "https://download.docker.com/linux/raspbian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sudo -E sh -c echo "deb [arch=armhf] https://download.docker.com/linux/raspbian stretch edge" > /etc/apt/sources.list.d/docker.list
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:
sudo usermod -aG docker jimjamz
Remember that you will have to log out and back in for this to take effect!
WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
for more information.
Code: Select all
sudo usermod -aG docker jimjamz
Code: Select all
docker -v
Code: Select all
Docker version 18.09.0, build 4d60db4
Code: Select all
docker ps -a
Code: Select all
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Code: Select all
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: core-dump) since Sat 2019-01-26 14:45:07 UTC; 14min ago
Docs: https://docs.docker.com
Process: 4314 ExecStart=/usr/bin/dockerd -H unix:// (code=dumped, signal=SEGV)
Main PID: 4314 (code=dumped, signal=SEGV)
CPU: 668ms
Code: Select all
sudo journalctl -qxe | grep docker
Code: Select all
Jan 26 14:44:33 JIMJAMZ-PI sudo[4215]: jimjamz : TTY=pts/0 ; PWD=/home/jimjamz ; USER=root ; COMMAND=/usr/bin/docker ps -a
Jan 26 14:44:49 JIMJAMZ-PI sudo[4248]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service docker restart
-- Subject: Unit docker.service has begun start-up
-- Unit docker.service has begun starting up.
Jan 26 14:44:53 JIMJAMZ-PI systemd[1]: docker.service: Main process exited, code=dumped, status=11/SEGV
-- Subject: Unit docker.service has finished shutting down
-- Unit docker.service has finished shutting down.
Jan 26 14:44:53 JIMJAMZ-PI systemd[1]: docker.service: Unit entered failed state.
Jan 26 14:44:53 JIMJAMZ-PI systemd[1]: docker.service: Failed with result 'core-dump'.
Jan 26 14:44:59 JIMJAMZ-PI sudo[4268]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service docker start
-- Subject: Unit docker.service has begun start-up
-- Unit docker.service has begun starting up.
Jan 26 14:45:06 JIMJAMZ-PI systemd[1]: docker.service: Main process exited, code=dumped, status=11/SEGV
-- Subject: Unit docker.service has failed
-- Unit docker.service has failed.
Jan 26 14:45:06 JIMJAMZ-PI systemd[1]: docker.service: Unit entered failed state.
Jan 26 14:45:06 JIMJAMZ-PI systemd[1]: docker.service: Failed with result 'core-dump'.
-- Subject: Unit docker.service has finished shutting down
-- Unit docker.service has finished shutting down.
Code: Select all
sudo systemctl enable docker
Code: Select all
systemctl start docker.service
Code: Select all
Failed to start docker.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Does this have something to do with the installation using [arch=armhf] instead of [arch=arm32v6]?