Volumes

Volumes are used for persisting data across builds and execution of containers. Compared to binds, changes from outside are not reflected, executing the same container on two different machines can hold fully different state of volumes. Therefore, volumes are used for Databases, User data etc.

Create a named volume: docker volume create <my-volume>. You can also leave out the name, then it will be an anonymous volume.

List volumes: docker volume ls

Inspect a volume: docker volume inspect <volume>

Volumes are typically located at: var/lib/docker/volumes- usually, you have to be the root user to access it.

In Coolify volumes are here: /data/coolify/applications/