dwc2-klipper is a Docker image for running DWC2 and Klipper 3d Printer controllers. It is design to run on Raspberry Pi or similar.
Because of recent changes to Klipper, this utilizes the fork from pluuuk as discussed here.
Copy an appropriate config file from here and add the following lines to it:
[virtual_sdcard]
path: /home/dwc2-klipper/sdcard
[web_dwc2]
## optional - defaulting to Klipper
printer_name: Klipper
# optional - defaulting to 0.0.0.0
listen_adress: 0.0.0.0
# needed - use above 1024 as nonroot
listen_port: 4750
# optional defaulting to dwc2/web. Its a folder relative to your virtual sdcard.
web_path: dwc2/web
Rename the file printer.cfg
and place in a known place on your docker host, which you will mount when starting the container.
Pull the image. If using raspberry pi or similar use arm
in place of [tag]
. amd64
is also available:
docker pull seanauff/dwc2-klipper:[tag]
Start the container:
docker run -d --device /dev/ttyUSB0:/dev/ttyUSB0 -v [some/path/on/host]:/home/dwc2-klipper/config -p 4750:4750 seanauff/dwc2-klipper:[tag]
Clone the repository and build the image:
git clone https://github.com/seanauff/dwc2-klipper.git
docker build -t seanauff/dwc2-klipper dwc2-klipper