install-docker.sh 556 B

12345678910111213141516
  1. #!/bin/bash
  2. # https://dev.to/rohansawant/installing-docker-and-docker-compose-on-the-raspberry-pi-in-5-simple-steps-3mgl
  3. curl -sSL https://get.docker.com | sh
  4. sudo usermod -aG docker pi
  5. sudo apt-get install -y libffi-dev libssl-dev python3 python3-pip git
  6. sudo pip3 install docker-compose
  7. # https://github.com/docker-library/official-images#architectures-other-than-amd64
  8. # https://hub.docker.com/u/arm32v7/
  9. # Tests / Examples
  10. docker run --rm arm32v6/bash date
  11. docker run -d --rm arm32v6/bash sleep 100
  12. docker ps
  13. docker run -it --rm arm32v6/alpine date