feat(docker): add support for rootless docker #5074
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As it seems that Rootless Docker is more secure alternative to the regular Docker it would be nice to be able to use Mailcow under the Rootless Docker.
I'm not the expert in the field, just was testing if it is possible to run Mailcow under the Rootless Docker at all.
These changes currently are not supposed to be merged, as it modifies basic
docker-compose.yml
for the purpose to be able to visually show the difference and, if everything's ok, then it can be transferred into new docker compose file or to some other logic.I didn't do much, just removed unsupported lines and changed path to
docker.sock
. But it actually looks to be working just fine on my test server...May be
sysctls
andulimits
options can be moved to some local docker config, for example under~/.config
?Also I had to add
CURRENT_USER_ID
variable as for some reason docker compose wasn't able to use just$UID
insidevolumes
section, I'm not sure why.Linux Info:
uname -a Linux hostname #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Docker Info: