Last active
April 24, 2022 11:12
-
-
Save icqparty/3a5e2d842a6b5d561c3c to your computer and use it in GitHub Desktop.
Полезные команды doker, docker-machine, docker-swarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Остановить все контейнеры | |
docker stop $(docker ps -a -q) | |
2. Удалить все контейнеры | |
docker rm -f $(docker ps -a -q) | |
3. Удалить все образы | |
docker rmi -f $(docker images -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-machine build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Создаем машину с именем linux-dev в digitalocean | |
# docker-machine create --driver digitalocean --digitalocean-access-token <API-Token> linux-dev | |
Делаем машину с именем linux-dev ативной | |
# eval "$(docker-machine env linux-dev)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment