Skip to content

setup Bug Report #17

Description

@meetkool

Here are some potential issues with the provided code:

  1. The Docker command does not include a volume mount for the data directory of the MongoDB container. This means that any data stored in the database will be lost when the container is stopped or restarted. To fix this, you can add a -v flag to the docker run command to mount a volume at the appropriate location inside the container. For example:
docker run --name mongodb --restart unless-stopped -d -p 27017:2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions