0% found this document useful (0 votes)
94 views3 pages

Installing OctoPrint Using Docker in Linux

This document provides instructions for setting up Octoprint on a device using Docker and Docker Compose. It includes steps to update the device, install prerequisites like Docker and Docker Compose, configure the docker-compose.yml file to map devices and ports, start the Octoprint and mjpg-streamer containers, and access the Octoprint instance through a web browser.

Uploaded by

JcMh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views3 pages

Installing OctoPrint Using Docker in Linux

This document provides instructions for setting up Octoprint on a device using Docker and Docker Compose. It includes steps to update the device, install prerequisites like Docker and Docker Compose, configure the docker-compose.yml file to map devices and ports, start the Octoprint and mjpg-streamer containers, and access the Octoprint instance through a web browser.

Uploaded by

JcMh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

--- Update Your Device

apt-get update
apt-get upgrade

-- Install Prerequisits
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common

-- Reboot your device


reboot

-- Run Docker Install Script


curl -sSL https://get.docker.com | sh

-- Check to see if Docker is up and running


sudo docker ps

-- Install Docker-Compose
sudo apt-get install docker-compose

-- Identify your printer


ls /dev/ttyU*
ls /dev/ttyA*

-- Identify your webcam


ls /dev/video*

-- create directory for octoprint

mkdir octoprint

-- create a directory for your printer


cd octoprint
mkdir reprap
cd reprap

-- get current working directory, record for later


pwd
-- return to octoprint directory
cd ..

-- edit the docker-compose configuration file


nano docker-compose.yml

--- Sample docker-compose file ----

version: '2.2'

services:
octoprint_reprap:
restart: unless-stopped
image: octoprint/octoprint
ports:
- 4000:5000
devices:
- /dev/ttyUSB0:/dev/ttyACM0
volumes:
- /root/octoprint/reprap:/home/octoprint

mjpg-streamer:
restart: unless-stopped
image: openhorizon/mjpg-streamer-pi3
# This image just takes the raw mjpg-streamer args -- set to 720p,30 fps
command: ./mjpg_streamer -o "output_http.so -w ./www" -i "input_uvc.so -r 1280x720 -d
/dev/video0 -f 30"
devices:
- /dev/video0:/dev/video0
ports:
- 8080:8080

--- Edit the above to reflect your configuration, save

--- use docker-compose to start your instance

docker-compose up -d

--- get container id and then check logs to failures


docker ps
docker logs <containerid>

--- grant full permissions to printer directory


chmod -R 777 reprap

-- restart your docker container


docker restart <containerid>

-- access your instance of octoprint by opening your browser and going to <deviceip>:<port>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy