fetch image
docker pull <image>
run image and open terminal in image
docker run alpine -it /bin/sh
docker run --name static-site -e AUTHOR="Rafa" -d -P seqvence/static-site
docker run --name static-site -e AUTHOR="Rafa" -d -p 8888:80 seqvence/static-site
list all ports of image
docker port <image>
run multiple commands in docker-compose
command: bash -c "commands...."
-d :flag runs the container in detached mode, i.e., the terminal exist but the container is still running --name : container name -e : env variables -d : detached mode -P : publish all container ports to ramdon ports in the host -p : maps host port to container port