Bind-mounted gitlab docker image not starting

I’m trying to keep gitlab data persistent by bind-mounting the gitlab directories below. However, the container won’t start, and it’s not populating the bind-mounted directories.

I’m running Rancher 2.x

I’ve given the bind-mount directories rwx for everyone, to cover permissions issues, and it still doesn’t start.

I’m a bit lost

Bind-mounted directories:

/etc/gitlab
/var/log/gitlab
/var/opt/gitlab

Rancher 2.x doesn’t work with bind-mounts for multiple mount paths in a single mount. You need individual mounts for each directory.

1 Like

Thanks a lot for taking the extra step of answering your own question. This is going to be very valuable for other community members facing the same or similar issue.

As a reminder, you can use the option in a post to mark it as the solution: