Skip to content

My container cannot save data to Disk, anyone can help me? #563

Description

@leslichase9

cmd:
docker run -d -i -t -v /Users/eysirs/database:/database -w /Users/eysirs/database -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql

environment:
Apple Mini M4

desc:
I mount /Users/eysirs/database to container /database. But my local path /Users/eysirs/database has no any data, and every time i run a container, there will automatic create a volume with random name, like this: bbf2eec4df3aef15ea4ed3320c5bfa503f63ebde40f65871e0f493662c852b73, it's data will removed when I delete the container. My God, I'm crazy. Help Me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions