Last active
September 7, 2020 19:39
-
-
Save vctrtvfrrr/3682bbdc3d1a4d69f627cb7584949a90 to your computer and use it in GitHub Desktop.
Docker commands to run temporary applications quickly
This file contains hidden or 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 -it --rm -p 80:80 -p 443:443 -w /etc/nginx nginx:alpine --name temp_nginx /bin/sh | |
docker run --rm -p 3306:3306 -e MYSQL_DATABASE=temp_database -e MYSQL_ROOT_PASSWORD=secret --name temp_mariadb mariadb:latest | |
docker run --rm -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=secret --name temp_mongo mongo:latest | |
docker run -it --rm --name temp_node node:lts /bin/bash | |
docker run -it --rm --name temp_php henesyslab/php:latest /bin/bash | |
docker run -it --rm -v ${PWD}:/app -w /app --name temp_go golang:latest /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment