Run Linux Desktop In Container

1 min read
Bash command:
docker run -d ^
--name webtop-xfce ^
-e PUID=1000 ^
-e PGID=1000 ^
-e TZ=Etc/UTC ^
-p 3000:3000 ^
--shm-size=1gb ^
lscr.io/linuxserver/webtop:latest
Powershell command:
docker run -d `
--name webtop-xfce `
-e PUID=1000 `
-e PGID=1000 `
-e TZ=Etc/UTC `
-p 3000:3000 `
--shm-size=1gb `
lscr.io/linuxserver/webtop:latest
Powershell command (with root user):
docker run -d `
--name webtop-root `
--user root `
-e PUID=0 `
-e PGID=0 `
-e TZ=Etc/UTC `
-p 3000:3000 `
--shm-size="2gb" `
-v "$HOME/my-webtop-root:/config" `
lscr.io/linuxserver/webtop:latest
Once logged in as root, you would be able to install app (Alpine Linux apk command):
apk update
apk add nmap tcpdump wireshark curl bind-tools net-tools
0
Subscribe to my newsletter
Read articles from Mohamad Mahmood directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Mohamad Mahmood
Mohamad Mahmood
Mohamad's interest is in Programming (Mobile, Web, Database and Machine Learning). He studies at the Center For Artificial Intelligence Technology (CAIT), Universiti Kebangsaan Malaysia (UKM).