Docker Community Forums

Share and learn in the Docker community.

Docker network with bridge port error

Hi unable to connect docker codesys with bridge netwotk same container works with "–network host " here i attached log:

docker run --rm -dt --name codesys -p 1217:1217/tcp -p 11740:11740/tcp -p 4840:4840/tcp -p 4840:4840/udp --network bridge --privileged code2

### docker run --rm -dt --name codesys -p 1217:1217/tcp -p 11740:11740/tcp -p 4840:4840/tcp -p 4840:4840/udp --network host --privileged code2

FROM ubuntu:18.04

COPY ./codesyscontrol_x64_linux_V3.5.14.40.deb /

RUN dpkg -i codesyscontrol_x64_linux_V3.5.14.40.deb
EXPOSE 1217:1217/tcp 11740:11740/tcp 4840:4840/udp
WORKDIR /var/opt/codesys

CMD ["/opt/codesys/bin/codesyscontrol.bin", “–debug”, “/etc/CODESYSControl.cfg”]