Open menu

How I setup Docker


I have used an Ansible role, but here are the steps

tasks from Ansible

  1. 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
  2. add the PGP key https://download.docker.com/linux/debian/gpg
  3. setup the repo deb [arch=arm] https://download.docker.com/linux/debian stretch stable
  4. install docker
    • apt-get update
    • apt-get install docker-ce docker-compose
  5. start docker
  6. 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.

My compose stash

see the docker docs -> https://docs.docker.com/compose/compose-file/

Published: 7 Nov 2024