I ran a metabase container using the command:
docker run -d -p 8000:3001 -v metabase-data:/metabase-data -v ~/metabase-plugins:/plugins -e "MB_DB_FILE=/metabase-data" --name metabase-main metabase/metabase
Afterward, I used docker cp
to copy some custom files to folders /metabase-data/
and /plugins/
inside the container. Those 2 folders were previously empty.
Finally, I ran another metabase container using almost the same command, only the ports and container name are different:
docker run -d -p 8001:3002 -v metabase-data:/metabase-data -v ~/metabase-plugins:/plugins -e "MB_DB_FILE=/metabase-data" --name metabase-test metabase/metabase
When I check the folders /metabase/
and /plugins/
inside the new container (metabase-test
), they also contain the same custom files, just like in the previous container (metabase-main
).
How is that even possible?