https://docs.docker.com/get-docker/
or
https://orbstack.dev/download
https://docs.docker.com/compose/install/
./pull-images.sh
docker system prune- delete unused datadocker pull <image>- download imagedocker image ls- list all imagesdocker image rm <image>- remove imagedocker build -t <image-name> <path-to-dockerfile>- build imagedocker run <image>- execute image as containerdocker ps- list of containersdocker kill <container-hash/name>docker kill $(docker ps -q)- kill all running containersdocker rm <container>- remove containerdocker exec -it <container> <command>- connect to running container and run commanddocker logs -f <container>- show logs from containerdocker system df- show size of images, containers and volumesdocker system prune (--all, --volumes)- cleanup containers, images
docker-compose ps- list of containers in projectdocker-compose up- start stackdocker-compose stop- stop stackdocker-compose down- stop stack and delete containersdocker-compose exec <container> <command>- connect to running container in stack and run commanddocker-compose logs -f <container>- show logs from container
This tool create valid certificate for your localhost
https://github.com/FiloSottile/mkcert#installation
For the first time, you must run an authority installation command
mkcert -install
- Create directory
~/nginx-proxy/certs/andcd ~/nginx-proxy/certs/ - Create certificate and key for nginx-proxy
mkcert --cert-file=example.cz.test.crt --key-file=example.cz.test.key example.cz.test - Add volume and port mapping to
nginx-proxyservice
services:
nginx-proxy:
ports:
- 443:443
volumes:
- ~/nginx-proxy/certs:/etc/nginx/certsFor valid certificate, you must generate a certificate for each web separately.
export DOCKER_HOST=ssh://root@<ip-your-machine>
docker info