2020-01-30 19:53:51 +00:00
# OctoPrint-Klipper
2018-06-03 22:27:11 +00:00
2020-01-30 19:53:51 +00:00
My version of a Docker image for running [OctoPrint] and [Klipper] in a single container. Included a few plugins I find useful.
2018-06-03 22:27:11 +00:00
2020-01-30 19:53:51 +00:00
Big thanks to [sillyfrog ](https://github.com/sillyfrog ) for laying the groundwork for this image.
2018-06-03 22:27:11 +00:00
2020-01-30 19:53:51 +00:00
This is very much written for what I needed, so you'll likely need to hack this up for your setup. I've been using it for a little while now and it's going well.
2018-06-03 22:27:11 +00:00
## Running the container
2020-01-30 19:53:51 +00:00
Create a directory on your host that will persist config files. I use `/home/docker/octoprint-klipper` .
2018-06-03 22:27:11 +00:00
2020-01-30 19:53:51 +00:00
Pull the image. Both `arm` and `amd64` images are on DockerHub. If using raspberry pi or similar use `arm` in place of `[tag]` .
```shell
docker pull seanauff/octoprint-klipper:[tag]
2018-06-03 22:27:11 +00:00
```
2020-01-30 19:53:51 +00:00
Start the container once to populate your config folder:
```
docker run -d --name octoprint-klipper -e TZ=America/New_York -v /home/docker/octoprint-klipper:/home/octoprint/.octoprint \
2018-06-03 22:27:11 +00:00
--device /dev/ttyUSB0:/dev/ttyUSB0 \
2020-01-30 19:53:51 +00:00
-p 5000:5000 \
seanauff/octoprint-klipper:[tag]
2018-06-03 22:27:11 +00:00
```
2020-01-30 19:53:51 +00:00
Stop the container, and modify your [Klipper] `printer.cfg` and [Octoprint] `config.yaml` in the config directory as needed.
2018-06-03 22:27:11 +00:00
2020-01-30 20:06:04 +00:00
Restart the container.
A docker-compose file is also provided.
2018-06-07 12:57:30 +00:00
2020-01-30 19:53:51 +00:00
If you have any questions, feel free to log an issue on this project, and I'll see if I can help.
2018-06-07 12:57:30 +00:00
2020-01-30 19:53:51 +00:00
## Build the image yourself
2018-06-07 12:57:30 +00:00
2020-01-30 19:53:51 +00:00
Clone the repository and build the image:
2018-06-07 12:57:30 +00:00
2020-01-30 19:53:51 +00:00
```shell
git clone https://github.com/seanauff/OctoPrint-Klipper.git
docker build -t seanauff/octoprint-klipper OctoPrint-Klipper
2018-06-07 12:57:30 +00:00
```
2020-01-30 19:53:51 +00:00
[Octoprint]: https://github.com/foosel/OctoPrint
[Klipper]: https://github.com/KevinOConnor/klipper