(ARM) Run OctoPrint in docker on ARM SoC-based devices
384
(If you want to see the dockerfile, the project is here: https://github.com/petergrace/octodocker) -- docker hub cannot build arm images so I had to push it manually rather than use an automated build
This is an ARM-based alpine image with python, OctoPrint and OctoPrint's requirements.
I made this so I could run multiple octoprints on the same raspberry pi with operational separation, and I thought making a docker image was cool.
I use docker-compose to start it, here's my example docker-compose.yml, which starts octoprint and mounts two folders for my custom home directory for the printer, and mounts a shared uploads directory that all of my octoprint instances share. Change OCTOPORT to whatever port you want the octoprint instance to listen on, and change the ports: declaration as well.
octoprint_1:
restart: always
image: petergrace/octodocker
volumes:
- /root/octodocker/sd4:/home/octoprint
- /root/octodocker/uploads:/home/octoprint/.octoprint/uploads
devices:
- "/dev/ttyACM0:/dev/ttyUSB0"
environment:
- OCTOPORT=25501
ports:
- "25501:25501"
Content type
Unrecognized
Digest
Size
119.5 MB
Last updated
over 9 years ago
docker pull petergrace/octodocker