How I setup Docker
I have used an Ansible role, but here are the steps
tasks from Ansible
- install the below
- apt-transport-https
- ca-certificates
- curl
- gnupg2
- software-properties-common
- libssl-dev
- python-cffi
- python-cffi-backend
- python3-cffi-backend
- python3-pip
- libffi-dev
- python3-nacl
- add the PGP key
https://download.docker.com/linux/debian/gpg
- setup the repo
deb [arch=arm] https://download.docker.com/linux/debian stretch stable
- install docker
apt-get update
apt-get install docker-ce docker-compose
- start docker
- update docker-compose
pip3 install --upgrade docker-compose==1.25.0
compose files
If your not using compose files, then you should be. They simplify the setup of a service and help keep all the bits together, this also works for swarm mode. All my services in any docker node are in a compose file, yes even if its just a single service.
see the docker docs -> https://docs.docker.com/compose/compose-file/
Published: