^p^‎ > ‎

docker

opublikowane: 12 sty 2017, 17:02 przez Piotr Trochymiak   [ zaktualizowane 20 gru 2019, 16:14 ]
docker-compose up d
docker-compose down
docker-compose down --volumes


docker ps -a

docker network ls
docker run -i -t ubuntu /bin/bash
docker inspect nostalgic_morse
docker commit -m "Added json gem" -a "Kate Smith" 0b2616b0e5a8 ouruser/sinatra:v2

https://docs.docker.com/engine/tutorials/dockervolumes/

docker images --digests | head
docker tag 5db5f8471261 ouruser/sinatra:devel
docker history centos:centos7

wyjscie z pracujacego
docker attach [id lub nazwa kontenera]
Ctrl+P Ctrl+Q

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rm -f %name%

To clear containers:

docker rm -f $(docker ps -a -q)

To clear images:

docker rmi -f $(docker images -a -q)

To clear volumes:

docker volume rm $(docker volume ls -q)

To clear networks:

docker network rm $(docker network ls | tail -n+2 | awk '{if($2 !~ /bridge|none|host/){ print $1 }}')

https://sii.pl/blog/docker-kontener-zmienne-srodowiskowe/
https://dev.to/petermbenjamin/docker-security-best-practices-45ih
Problem przy przenosinach  mysql+docker
                            SET GLOBAL innodb_strict_mode = 0;

Comments