Is there a way to "publish" ports from a container when using "fig run"?
It is now possible to publish ports when using the run
command with the --service-ports
parameter in docker-compose.
NB! The fig project has changed name to docker-compose, and is available here: https://docs.docker.com/compose/
It is not possible to forward ports while using fig run, as show Fig docs page:
"... One-off commands are started in new containers with the same config as a normal container for that service, so volumes, links, etc will all be created as expected. The only thing different to a normal container is the command will be overridden with the one specified and no ports will be created in case they collide."