cioos-siooc / ckan

CKAN is an open-source DMS (data management system) for powering data hubs and data portals. CKAN makes it easy to publish, share and use data. It powers datahub.io, catalog.data.gov and europeandataportal.eu/data/en/dataset among many other sites.
http://ckan.org/
Other
2 stars 4 forks source link

New volumes with random string are created by CKAN during startup with docker-compose #175

Closed ItaloBorrelli closed 1 year ago

ItaloBorrelli commented 1 year ago

CKAN version 1.2.1

Describe the bug New volumes with a random hex hash string

Steps to reproduce

cd {CKAN_DIR}/contrib/docker
docker volume ls > pre.out
docker-compose down && docker-compose up -d # or select a specific docker-compose*.yml file with -f
docker volume ls > post.out
diff pre.out post.out

You should see two new volumes every time you restart the containers with some random string of characters that is automatically created by docker.

Expected behavior Volumes should persist across sessions and no new ones should be created, unless there is a change in an image being used and the volumes it uses.

Additional details To figure out what volumes are created by an image get the images qualified name, REPOSITORY:TAG concatenated or IMAGE ID from docker image ls and use docker image inspect ${IMAGE_NAME} | jq -r -c '.. | .Volumes? //empty