Is it secure to expose port 9001 directly to the public internet? #12763
-
Ask a Question!docker run -d \
-p 9001:9001 \
--name portainer_agent \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
-v /:/host \
portainer/agent:2.31.3 We deployed the agent using the following command, where port 9001 is open and accessible to anyone. Can any machine connect to the agent? |
Beta Was this translation helpful? Give feedback.
Answered by
Nick-Portainer
Jul 13, 2025
Replies: 1 comment 1 reply
-
If it is not secure, do we support a more secure method? For example, using a token? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @itning, the short answer is no but it can be more complex than this. Here is a blog post our CEO Neil created around this - https://www.portainer.io/blog/should-you-expose-portainer-or-agent-to-the-internet It's worth a read.