Skip to content
Snippets Groups Projects
webtop.sh 708 B
Newer Older
Nathan Rodet's avatar
Nathan Rodet committed
#!/bin/bash

#
# Run Webtop Container
#

docker run -d --name=webtop \
       --security-opt seccomp=unconfined \
       -e PUID=0 \
       -e PGID=0 \
       -e TZ=Europe/Paris \
       -e SUBFOLDER=/ \
       -e KEYBOARD=fr-fr-azerty \
       -e AUTO_LOGIN=false \
       -p 8082:3000 \
       -v /root/webtop:/config \
       -v /var/run/docker.sock:/var/run/docker.sock \
       --shm-size=8gb \
       --cap-add=NET_ADMIN \
       --privileged \
       --restart unless-stopped \
       --sysctl net.ipv6.conf.all.disable_ipv6=0 lscr.io/linuxserver/webtop:ubuntu-xfce

#
# Modify default password
#

echo "$(scw-userdata user_password)\n$(scw-userdata user_password)" | docker exec -i webtop passwd abc