Docker configuration of my data-science environment for raspberry-pi-3 Edit
2.0K
Docker container with python Environment for raspberry-pi3
For RaspberryPi3: https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/
First run docker pull rh01/rpi-python to pull the latest version of image. Run using docker run -it --name pythonenv1 rh01/rpi-python. This command downloads the prepared image from a public hub, and starts a bash for you.
This "stop and start" scenario is useful when you want to take a break and turn off your host machine.
Save your work inside the container, then run docker stop pythonenv1 in different terminal window to stop a running container. You will be able to start it later.
Run docker start -a pythonenv1 to run previously stopped container and attach to its stdout. You can continue to work where you left off.
You might want to make a checkpoint of your work so that you can return to it later. Think of it as a backup or commit in version control system.
You will first have to stop the container following instructions above. Now you need to save the container state so that you can return to it later: docker commit pythonenv1 pythonenv1-snap. You can make sure that it's saved by running docker images.
If you want to continue working from a particular checkpoint, you should run a new container from your saved image by executing docker run -it --name pythonenv2 pythonenv1-snap. Notice that we incremented index in the container name, because we created a new container.
Content type
Image
Digest
Size
104.6 MB
Last updated
almost 9 years ago
docker pull rh02/rpi-python