Professional Documents
Culture Documents
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