Skip to content

Adding port to docker run command #530

Closed
@adrian-beston

Description

@adrian-beston

I was having trouble accessing the Docker image on my Mac as the port (27017) was not bound when I ran the command in the instructions:

docker run --name some-mongo -d mongo:tag

Suggest updating instructions to:

docker run -dp 27017:27017 --name some-mongo -d mongo:tag

With the updated code I could run mongosh without the connection being refused

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions