Docker Community Forums

Share and learn in the Docker community.

Cannot control port exposure via Docker Remote API from node

docker

(Cefn) #1

I have been struggling for a very long time, literally weeks, to get Docker to open up ports via the Remote API.

Although I have raised github issues against Dockerode and Docker, they have all received no comment.

For example, I have a minimal example of the problem at https://github.com/docker/docker/issues/23432

Can anyone guide me to the right resources which would document the proper invocation via the Remote API? Dockerode is apparently the recommended library for accessing docker from node according to https://docs.docker.com/engine/reference/api/remote_api_client_libraries/ so I don’t know how else to make progress.


(Cefn) #2

Note, Docker github issue closed with error identified in ExposedPort specification.


Expose the Docker Remote API on Centos 7?