docker.sh 501 B

123456789101112131415
  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
  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. # Test
  10. docker run -d --rm arm32v6/bash sleep 100
  11. docker ps
  12. docker run -it --rm arm32v6/alpine