-
-
Save nikallass/e5124756d0e2bdcf8981827f3ed40bcc to your computer and use it in GitHub Desktop.
#!/bin/bash | |
# update apt-get | |
export DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get update | |
# remove previously installed Docker | |
sudo apt-get remove docker docker-engine docker.io* lxc-docker* | |
# install dependencies 4 cert | |
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
# add Docker repo gpg key | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
echo "deb https://download.docker.com/linux/debian stretch stable" >> /etc/apt/sources.list | |
sudo apt-get update | |
# install Docker | |
sudo apt-get install docker-ce | |
# run Hellow World image | |
sudo docker run hello-world | |
# manage Docker as a non-root user | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
# configure Docker to start on boot | |
sudo systemctl enable docker |
I keep getting following error
Setting up docker-ce (17.12.1
ce-0debian) ...
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; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2018-03-03 22:58:16 +08; 10ms ago
Docs: https://docs.docker.com
Process: 32576 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 32576 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Good stuff, mate!
great, it works well, thanks
thanks a lot...
worked very well
thanks
I really appreciate your help. It works fine! :D
Thanks, worked like a charm!
thanks 👍
and can use 2018.3a or 2018.2 ...etc
I'm very happy!
Thanks my friend