Check if ports 80 and 443 are already used :
sudo lsof -i -P -n | grep LISTEN
Close those services :
sudo service <nginx> stop
Then make and run container :
sh run.sh
docker exec -it server_ctn /bin/bash
$
sh usr/srcs/autoindex_switch.sh
sh clean.sh
docker ps -a
list all containers
docker images -a
list all images
docker build -t server_img .
docker create --tty --interactive --name="server_ctn" server_img
docker start server_ctn
docker system prune -f -a
to clean unused objects
docker container prune
to remove all stopped containers
docker container stop $(docker container ls -aq)
stop all containers
docker container rm $(docker container ls -aq)
remove all containers
docker image prune -a
remove all unused images