You will need to mount a volume on /home/octoprint/.octoprintand forward any serial devices through to the container. It exposes port 8080 which you will want to map to wherever you want it to be.
Here is a sample docker-compose.yml:
version: "3"
volumes:
data:
driver: local
services:
octoprint:
image: majenko/octoprint:latest
container_name: octoprint
ports:
- 8088:8080
volumes:
- data:/home/octoprint/.octoprint
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
Dockerfile and example docker-composer.yml file are on Github: https://github.com/majenkotech/docker-octoprint
Content type
Image
Digest
sha256:01544b606…
Size
392.4 MB
Last updated
almost 4 years ago
docker pull majenko/octoprint