Can I relable a docker volume when I create the container?

Solution 1:

That looks like:

-v "$(pwd)/data:/prometheus/data:z"

Documentation on configuring the selinux labels can be found at: https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label