'Docker run mongo-express Unexted token in expression or statement error
I want run this mongo-express container and connect it to a mongodb via a bridge called mongo-network.
Command I execute:
docker run -d \
>> -p 8082:8081 /
>> -e ME_CONFIG_MONGODB_ADMINUSERNAME=admin \
>> -e ME_CONFIG_MONGODB_ADMINPASSWORD=password \
>> --net mongo-network \
>> --name mongo-express \
>> -e ME_CONFIG_MONGODB_SERVE=mongo \
>> mongo-express
Error I receive in Windows Powershell
At line:5 char:3
+ --net mongo-network \
+ ~
Missing expression after unary operator '--'.
At line:5 char:3
+ --net mongo-network \
+ ~~~
Unexpected token 'net' in expression or statement.
At line:6 char:3
+ --name mongo-express \
+ ~
Missing expression after unary operator '--'.
At line:6 char:3
+ --name mongo-express \
+ ~~~~
Unexpected token 'name' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator
Any suggestions are greatly appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
