I have docker image (from private atomic repository) witch i run as a container in Docker (Windows10) and everything is all right:
docker run -d --net siecDocker --ip 172.18.0.22 --name UF -v /opt/DOCKER:/DEPLOY -p 9080:9080 -p 9043:9043 -p 9060:9060 ufek:1.0
I have no problem with application and url address answer on port 9043,9060,9080 locally and remotely.
When i pull this image from repository on centos7 and run it the container is running with my app but ports don`t answer.
it is the same image ! and syntax for running is also the same. I have no idea whats wrong ?
Others images are all right only this one is problematic.
I believe I can see the issue now. You
sestatus
showsCurrent mode: enforcing
. This means it is in strict mode and will only allow connections which are allowed.Edit the
/etc/selinux/config
file and change the mode to permissive/etc/selinux/config
Restart your centos machines and things should start to work