Docker running on windws, I have couchbase image which I’d like to run, looking at the provided info I should use the following command:
docker run -d --name cb1 -p 8091-8094:8091-8094 -p 11210:11210 couchbase
However, I get an error saying that the 11210 port is already allocated.
So, I run this command instead:
docker run -d --name cb1 couchbase
Now it looks like things are good, however, as I am new to this I wonder what’s the difference between the two commands and should I expect rpoblems, using the shorter command and not mapping those ports explicitly?