Created
January 16, 2019 15:27
-
-
Save pulketo/dd916561c367cfe5b2baac3b4d049e76 to your computer and use it in GitHub Desktop.
Cosas con docker | docker stuff
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
Actualizar una imagen (p.ej myssql) | |
docker pull mysql | |
docker stop my-mysql-container | |
docker rm my-mysql-container | |
docker run --name=my-mysql-container --restart=always -e MYSQL_ROOT_PASSWORD=mypwd -v /my/data/dir:/var/lib/mysql -d mysql | |
show current docker images running | |
docker ps | |
show last images running and stopped | |
docker ps -a | |
execute a let thru port | |
docker run -p 8880:8880 dubalu/xapiand -vvvv | |
docker attach "container id" | |
if something changed: docker commit "id / container name" | |
killall | |
docker kill $(docker ps -q) | |
stop | |
docker stop "container id" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment