2022-08-31 18:09:21 +02:00
2022-08-27 15:15:32 +02:00
2022-08-31 18:04:05 +02:00
2022-08-27 15:15:32 +02:00
2022-08-31 18:09:21 +02:00

inception


git next commit

  • in makefile added -d to up in detach
  • in makefile added close-nginx
  • in makefile changed clean doesnt rm-images

questions

  • ? what means mounted in "a file or directory on the host machine is mounted into a container" ?
  • ? why the volumes cannot be modify outside docker ?

nginx basics

  • sudo netstat -tulpn to print network connections and see if nginx is running
  • or : ps -ax | grep nginx
  • sudo nginx -s quit to stop it
  • sudo docker system prune -af --volumes -> -a also unused images, -f without prompt for confirmation
    • remove stopped containers
    • remove unused networks
    • remove unused images
    • remove build cache
  • sudo docker ps -q all runnings containers
  • sudo docker stop $(sudo docker ps -q) stop all runnings containers

Docker basics

  • the container posess its own filesystem
  • we need to copy the files it uses inside this filesystem
  • we can do that with COPY

build and run a docker image

  • sudo docker build --tag <name> .
  • sudo docker run <name>
  • sudo docker images to list docker images
  • sudo docker image rm <number>
  • sudo docker ps to list docker processes
  • sudo docker ps rm <name>

execute a docker-compose file

  • sudo docker-compose up
  • or sudo docker-compose -f ./path up to specify a path

ressources

docker :

nginx

openssl

Description
No description provided
Readme 2.9 MiB
Languages
Dockerfile 62.6%
Makefile 20.3%
Shell 15.4%
Assembly 1.6%
HTML 0.1%