Using the script will get
docker-ce-cli
anddocker-ce
(you can uninstall this byapt-get
)
# download the install script
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
# in one line
curl -sSL https://get.docker.com | sudo sh
But using this script, it needs to run on interactive terminal (i.e. can't use fabric...) => Solved by setting environment variable
DEBIAN_FRONTEND=noninteractive
Haven't tried yet
- Hypriot - Run Docker on a Raspberry Pi 3 with onboard WiFi
- GitHub Gist tyrell/docker-install-rpi3.md
- Get Docker up and running on the RaspberryPi (ARMv6) in four steps (Wheezy)
Haven't tried yet
It seems that the
get-docker.sh
need some interactive installation?! but in the end it showed "install successfully" but actually have some daemon problem.Update: message show even after setting environment variable
DEBIAN_FRONTEND=noninteractive
but it can work anyway.
$ fab install-docker
# Executing docker install script, commit: 2f4ae48
...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
...
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 your-user
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.
Docker is ready!
- Is it possible to answer dialog questions when installing under docker?
- Error debconf: unable to initialize frontend: Dialog
- Getting tons of debconf messages unless TERM is set to linux
- docker/swarm - Swarm: a Docker-native clustering system
- Swarm mode overview