Docker Snap: Cannot access docker-compose config in dot folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker.io (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I'm currently trying to use `docker-compose` (from the Docker snap; `whereis docker-compose` says `docker-compose: /snap/bin/
That fails with
.IOError: [Errno 13] Permission denied: '/home/
Per https:/
cat /var/log/syslog | tail -n 400
which gave
Feb 17 17:33:16 mylaptop kernel: [22167.704290] audit: type=1400 audit(158193919
Feb 17 17:33:16 mylaptop kernel: [22167.704293] audit: type=1400 audit(158193919
Things seem to work if I choose a location in a non-hidden directory instead.
However, this seems like a bug to me; I don't understand a lot about Snap's/AppArmor's privilege system, but shouldn't a Snap be able to access the contents of a hidden directory in my home folder?
The context for this is a build system that wraps docker-compose in an additional tool, which places its config files in a `.something` hidden directory in a user's home folder. More discussion here: https:/
Edit: I'm on Ubuntu 18.04.4 LTS
description: | updated |
The docker snap cannot access directories that start with a "." in the home folder. This is a generic security mechanism for all snaps. I'd recommend moving the directory out of ~/.wp-env to somewhere like ~/wp-env or allow configuring this somehow.
As such, closing this as WontFix for snapd.