11👍
I found a working solution.
Don’t use the snap installation and do this instead (tested Ubuntu 20.04)
apt install docker.io docker-compose
10👍
adding the directory where I am running my docker-compose.yml
using the apparmor reconfigure tool:
$ sudo dpkg-reconfigure apparmor
- Overriding Size of Django Admin Multi-select Widget
- How to create or register User using django-tastypie API programmatically?
4👍
You need to update your AppArmor configuration :
Snap Dockers are heavily controlled with AppArmor.
To diagnose if it is really the case, check the last lines of the syslog after you triggered the error :
dmesg | grep docker-compose
You should see a snap.docker that was denied:
kernel: [ ] audit: type=1400 audit(….):
apparmor=”DENIED” operation=”exec” profile=”snap.docker.dockerd”
name=”/bin/kmod” pid=7213 comm=”exe” requested_mask=”x”
denied_mask=”x” fsuid=0 ouid=0
To correct this, just go to apparmor config’s tunables :
cd /etc/apparmor.d/tunables
And edit HOMEDIRS variables in the ‘home’ file, for example from :
@{HOMEDIRS}=/home/
to
@{HOMEDIRS}=/home/ /media/aUser/Linux/
hope that helps.
- Django static files on heroku
- Newbie difficulty using south with pycharm – DatabaseError: no such table: south_migrationhistory
- ValueError: Field 'id' expected a number but got 'Processing'
- Django-admin.py startproject opens notepad, instead of creating a project
- How do I get the django HttpRequest from a django rest framework Request?
2👍
All the other answers didn’t work for me.
docker –version
Docker version 20.10.17, build 100c701
docker-compose -v
docker-compose version 1.29.2, build unknown
Instead of
docker-compose up
please use
docker compose up
- How to use normal Filter together with SearchFilter on Django Rest Framework?
- Django form field grouping
- How do I serve media files in a local Django environment?
- Web Application (Django) typical project folder structure