- install Docker on Ubuntu
sudo apt-get update
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker –version - setup openspug/spug container
openspug/spug is a small server manage tool developed with python!
https://github.com/openspug/spug
sudo docker pull openspug/spug
sudo docker run -d -p 80:80 openspug/spug
if port 80 already in use, you can find the process by:
sudo lsof -i:80
in our case it’s apache, stop it with:
sudo systemctl stop apache2
sudo docker ps to get running container details:
(base) ubuntu@ubunu2004:/$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c493cbf6aceb openspug/spug "/entrypoint.sh" 4 minutes ago Up 4 minutes 0.0.0.0:80->80/tcp determined_allen
initial and restart the spug:
export CONTAINER_ID=c493cbf6aceb
sudo docker exec $CONTAINER_ID init_spug admin spug.dev
sudo docker restart $CONTAINER_ID
then you can login http://192.168.0.43/ with:
user: admin
password: spug.dev