Easy Bambu Studio Setup with Docker
Set up Bambu Studio on Linux easily with our Docker guide. Perfect for 3D printing enthusiasts seeking hassle-free installation.
Who is this for?
This is for those who have 1(or more) Bambu Labs 3D Printer(s). This silos the Bambu Studio app by leveraging the Kasm framework, you can find out more about that here After trying the documented build for docker, and struggling, I found an article on Mariushosting here using docker compose, which worked great. This is just a distilled-down version of that.
Requirements
- Linux OS(bare metal or virtual/lxc)
- 4GB RAM(minimum)
- 2 CPU cores
- 15GB storage(not including OS)
Setup Ubuntu 20.04 LXC with Docker
This is as simple as it gets, pulled from a list of scripts found here.
1
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/docker.sh)"
Installing Docker on an Ubuntu System Directly
This step is a condensed version of the steps found in Docker’s documentation.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Prep LXC/Ubuntu
We want to set up a user that can access Docker without being root, we do that with the commands below.
1
2
3
adduser dave # Fill out questions as you wish
usermod -aG docker dave
apt update && apt -y upgrade
Create docker-compose.yml
Now let’s create a directory to store the docker-compose.yml and other data files.
1
2
3
cd ~
mkdir bambu-studio
cd bambu-studio
Then run the following to create a docker-compose.yml
1
nano docker-compose.yml
Then paste the following into the docker-compose.yml file, after that hit Ctrl+x and then y to save the file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
version: "3.9"
services:
bambustudio:
image: ghcr.io/linuxserver/bambustudio:latest
container_name: Bambu-Studio
hostname: bambustudio
mem_limit: 4g
cpu_shares: 1024
security_opt:
- no-new-privileges:true
- seccomp:unconfined
healthcheck:
test: curl -f http://localhost:3000/ || exit 1
ports:
- 8233:3000
volumes:
- /home/bambu/bambustudio:/config:rw
environment:
TZ: America/Chicago
PUID: 1026
PGID: 100
TITLE: Bambu-Studio
CUSTOM_USER: bambu
PASSWORD: password
restart: on-failure:5
Starting things up
Keep in mind this will take a while to download on the first run
Run the following command to get started.
1
docker compose up -d
Now you should be able to access the site from http://server-ip:8233 and use the username and password to log in to Bumbu Studio running in Kasm. That’s it! If you found this article helpful please consider buying me a coffee on the ko-fi link below. Till then fair winds and following seas.