This repository contains a Dockerfile and associated files for running PrusaLink in a Docker container. PrusaLink is a tool for managing and controlling Prusa 3D printers.
- Docker installed on your system
- Git (optional, for cloning the repository)
-
Clone the repository (or download the Dockerfile):
git clone https://github.com/donslice/prusa-link-docker.git cd prusa-link-docker
-
Build the Docker image:
docker build -t prusalink .
This command builds the Docker image and tags it as 'prusalink'.
After building the image, you can run the container using Docker run or Docker Compose.
docker run -it -p 8080:8080 --privileged \
-v /opt/prusalink/config:/etc/prusalink \
-v /opt/prusalink/data:/home/pi \
prusalink
Adjust the volumes and other settings as needed for your environment.
-
Create a
docker-compose.yml
file with the following content:services: prusalink: image: prusalink privileged: true ports: - "8080:8080" volumes: - /opt/prusalink/config:/etc/prusalink - /opt/prusalink/data:/home/pi
-
Run the container:
docker-compose up -d
- The container is set up to use the 'pi' user by default.
- Configuration files should be placed in
/opt/prusalink/config
on the host, which is mapped to/etc/prusalink
in the container. - User data is stored in
/opt/prusalink/data
on the host, mapped to/home/pi
in the container.
Once the container is running, you can access the PrusaLink web interface by navigating to http://localhost:8080
in your web browser.
- If you encounter permission issues, ensure that the volumes on the host have the correct permissions.
- For any PrusaLink-specific issues, refer to the official PrusaLink documentation.
This repository is not actively maintained. Users are encouraged to fork the repository and make their own modifications as needed. If you develop improvements or fixes, consider sharing them with the community by creating your own public fork or repository.
This Dockerfile and associated scripts are provided under the MIT License.