Created
August 24, 2018 16:40
-
-
Save johnsi15/e24c39ea8e79e071ef2f4893e031fe74 to your computer and use it in GitHub Desktop.
Comandos básicos de docker
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 run hello-world | |
docker search Ubuntu | |
docker pull Ubuntu | |
docker images | |
docker run -it Ubuntu bash | |
docker run --name my-ubuntu -it ubuntu bash | |
docker commit id name | |
docker rmi id o name | |
docker ps | |
docker ps –a | |
docker ps –l | |
docker stop container-id | |
docker rm container-id | |
docker start container-id | |
docker login -u docker-registry-username | |
docker push docker-registry-username/docker-image-name | |
docker run --name dbmysql -v /$PWD/databases:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d -p 3307:3306 mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_use_native_aio=0 | |
docker run -d --name phpmyadmin --link dbmysql -p 3777:80 -e PMA_ARBITRARY=1 phpmyadmin/phpmyadmin | |
docker run --name site_wp \ | |
-e WORDPRESS_DB_NAME=wp_prueba \ | |
-v /$PWD/site:/var/www/html \ | |
--link mysqldata:mysql -p 8080:80 -d wordpress:4.9.7 | |
docker run --name my-nginx -d -p 8081:80 nginx:1.14 | |
docker run -it --rm --name web-node my-app | |
docker run --rm --name web-node -d -p 3000:3000 my-app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment