dokku / dokku-mongo

a mongo plugin for dokku
MIT License
177 stars 32 forks source link

Fix /data/db volume mount point #26

Closed ebeigarts closed 9 years ago

ebeigarts commented 9 years ago

Mongo images on dockerhub uses /data/db volume and not /data.

After upgrading, users will need to manually copy /var/lib/docker/volumes/../_data to /var/lib/dokku/services/mongo/<app>/data

You can get the current mount points using docker inspect <container-id>

"Mounts": [
    {
        "Source": "/var/lib/dokku/services/mongo/<app>/data",
        "Destination": "/data",
        "Mode": "",
        "RW": true
    },
    {
        "Name": "bda013c6b4699687eb8a8e8e68440838cfedef62ab4be454bc13d0f66eab1279",
        "Source": "/var/lib/docker/volumes/bda013c6b4699687eb8a8e8e68440838cfedef62ab4be454bc13d0f66eab1279/_data",
        "Destination": "/data/db",
        "Driver": "local",
        "Mode": "",
        "RW": true
    }
],
Flink commented 9 years ago

:+1: