Raspberry Pi – the container engine ‚Docker‘

raspberrypi_logo.jpgDocker_logoDocker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production

# curl -sSL get.docker.com | sh
# sudo usermod -aG docker root
# docker ps 
# docker stop <containername1> <containername2> … 
# docker rm <containername>
# docker start  <containername>
# docker pull <imagename>
# docker logs <containername> 
# docker exec -t -i <containername> bash
# docker info 
# docker images
# docker –help
# docker version
 Client:
  Version:      17.04.0-ce
  API version:  1.28
  Go version:   go1.7.5
  Git commit:   4845c56
  Built:        Mon Apr  3 18:22:23 2017
  OS/Arch:      linux/arm
 Server:
  Version:      17.04.0-ce
  API version:  1.28 (minimum version 1.12)
  Go version:   go1.7.5
  Git commit:   4845c56
  Built:        Mon Apr  3 18:22:23 2017
  OS/Arch:      linux/arm
  Experimental: false
Example ‚Alpine Linux‘
# docker run -ti armhf/alpine:3.5 /bin/sh
Example ‚Wordpress‘
# docker run –name wordpress -d -p 80:80 waog/rpi-wordpress
http://<server public IP>

 

Leave a Reply

You must be logged in to post a comment.