Quick & Easy: Install or Update OctoPrint Docker Container

Install

  • docker run -d -v /home/$USER/docker_configs/octoprint:/octoprint --device /dev/ttyUSB0:/dev/ttyUSB0 -p 8880:80 --name octoprint octoprint/octoprint
  • Go to http://server:8880

Upgrade

  • docker stop octoprint && docker rm octoprint
  • docker pull octoprint/octoprint
  • docker run -d -v /home/$USER/docker_configs/octoprint:/octoprint --device /dev/ttyUSB0:/dev/ttyUSB0 -p 8880:80 --name octoprint octoprint/octoprint