What is OctoPrint?
OctoPrint provides a snappy web interface for controlling consumer 3D printers. -https://github.com/OctoPrint/OctoPrint
Installing Docker
- Log into the Linux host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running OctoPrint Container
- Continue with the following commands in a terminal window
# create working directories
mkdir ~/docker/octoprint -p
# set owner of docker directory
sudo chown "$USER":"$USER" ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/octoprint
# run the octoprint container
docker run -d --name octoprint -v ~/docker/octoprint:/octoprint --device /dev/ttyACM0:/dev/ttyACM0 -p 8041:80 --restart=unless-stopped octoprint/octoprint - Open a web browser and navigate to http://DNSorIP:8041
- Click Next on the Start screen
- Click Next on the Restore Backup screen
- Create an account my entering a Username and entering and confirming a password > Click Create Account
- Once the account is created, click Next
- Choose to Enable or Disable the Connectivity Check > Click Next
- Choose to Enable or Disable Anonymous Usage Tracking > Click Next
- Choose to Enable or Disable the Plugin Blacklist > Click Next
- Click Next on the Webcam Wizard screen
- Click Next on the Default Printer Profile screen
- Click Next on the Server Commands screen
- Acknowledge all the messages on the Finish screen > Click Finish
- Welcome to OctoPrint
Documentation: https://github.com/OctoPrint/octoprint-docker