Named Volumes vs Bind Mounts

I recently started with linuxserver.io and docker. At first I used Bind Mounts, but then I wanted to give Named Volumes a try.

Using Named Volumes takes some extra steps, like having to add something like this for volumes to docker-compose.yml.

volumes:
  heimdall:
  swag:

To access and edit config in volume this can be useful:

sudo docker exec -it (contain_id) /bin/bash