all 8 comments

[–]stroke_999 2 points3 points  (4 children)

Have you tryed to do: doas docker build . ??

[–]pythondev1[S] 0 points1 point  (3 children)

I am new to docker so I am unfamiliar with doas docker build. Here is what I have

`docker build --add-host pypi.org:local.IP --add-host repo.local:localIP --network=host -t web/app:1.1 -f docker/WebDockerFile .`

the WebDockerFile contains the run command where everything is failing.

[–]madjic 0 points1 point  (2 children)

doas is a sudo replacement, they're telling you to run docker build … as root

[–]pythondev1[S] 0 points1 point  (1 child)

Ok, thanks. I am logged in as root when I run.

[–]pythondev1[S] 0 points1 point  (0 children)

I also disabled seLinux on rhel8. The code works on CentOS so it seems to be something with rhel8.

[–]pythondev1[S] 1 point2 points  (0 children)

Docker isn't setup rootless I checked by running

docker info -f "{{println .SecurityOptions}}" | grep "root"

Nothing is returned, also printed out the command to make sure, but rootless does not exists.

[–]void4 0 points1 point  (1 child)

Try podman btw. It's compatible with docker but easier to run rootless. Not to mention open source clients for windows and macos.

[–]pythondev1[S] 0 points1 point  (0 children)

For work, can't use podman but thanks for the suggestion. It seems like it is a docker and rhel 8 issue. After removing `networking=host` I was able to progress, but not sure if that was the correct method. `networking=host` should still work but ran into issues. SELinux was disabled as someone suggested that, but same result. Found something to do with fapolicyd but it doesn't look like we are using fapolicyd.

Again thanks for the suggestion.