You want to create a container that is reachable from its host’s network.
Does this action accomplish this?
Use either EXPOSE or --publish to access the container on the bridge network.
You want to create a container that is reachable from its host’s network.
Does this action accomplish this?
Use either EXPOSE or --publish to access the container on the bridge network.
No, using EXPOSE alone will not make the container reachable from the host’s network. Yes, using --publish (or -p) will accomplish this.