First of all, sorry if this is a stupid question but I’ve been looking around for some time and cannot find a solution to my problem.
I have a web app I want to “dockerise” using sbt. I create the image using native-sbt-packager with docker:publishLocal and I can run it with
docker run -p 9000:9000 myapp:version.
However, docker was crating the image in /var/lib/docker which was filling my root partition pretty quickly (using fedora 27).
I added a deamon.json with the “graph” key and change the location to a folder in my /home directory. (/home/myuser/docker)
Since then, I’m having SELinux issue and cannot build or run images without first running
sudo setenforce 0
which seems to me like a REALLY BAD solution.
I eventually found a way to run the image without disabling SELinux, with the option
I’m still not sure this is the best solution but it seems a lot better.
However, I still cannot build the image without disabling SELinux as the --security-opt option cannot be set there.
If somebody ever run into this kind of issue and can help me, I would greatly appreciate it.
Once again, sorry if this is a stupid question, I’m pretty new to docker and not really a linux expert.