You are on page 1of 1

docker run container-name

docker ps -a
docker logs container-id
docker inspect container-id
docker rm container-id
docker container prune -f -> rm all unused/stopped containerserp
docker build -t webserver . -> create image from Dockerfile
docker run --rm -it -p 8082:80 webserver -> ctrl+c for stopping container<>-it,
container will be removed when it will be stpped <> --rm
docker -v your/location:/in/container/location/

/*======================================== n
= Creating images =
========================================*/

FROM nginx:1.15

COPY index.html /usr/share/nginx/html/

/*===== End of Creating images ======*/

You might also like