This one’s weird:
(notepad++):
### Init mongo-express
docker run -d
--network mongo-network
--name mongo-express
-p 8081:8081
-e ME_CONFIG_OPTIONS_EDITORTHEME="ambiance"
-e ME_CONFIG_MONGODB_SERVER="mongodb"
-e ME_CONFIG_BASICAUTH_USERNAME="<user>"
-e ME_CONFIG_BASICAUTH_PASSWORD="<pass>"
-e ME_CONFIG_MONGODB_URL="mongodb://<user>:<pass>@mongodb:27017/"
--name mongo-express mongo-express
adding image for clarity:
Copying the above into a cygwin terminal produces:
docker run -d
> --network mongo-network
> --name mongo-express
> -p 8081:8081
> -e ME_CONFIG_OPTIONS_EDITORTHEME="ambiance"
> -e ME_CONFIG_MONGODB_SERVER="mongodb"
> -e ME_CONFIG_BASICAUTH_USERNAME="<user>"
> -e ME_CONFIG_BASICAUTH_PASSWORD="<pass>"
> notes.md -e ME_CONFIG_MONGODB_URL="mongodb://<user>:<pass>@mongodb:27017/"
> --name mongo-express mongo-express
The notes.md
argument is the name of the file. How and why does it get pasted?