Skip to content

Dial tcp: lookup portainer_agent, no such host when using environment with agent #9296

Closed Answered by jamescarppe
SirMishaa asked this question in Help
Discussion options

You must be logged in to vote

Are you running the Portainer Server and Portainer Agent on the same machine? You don't need to do this - the Portainer Server installation lets you manage your local environment without needing the agent. There is some additional functionality that an agent gives you over the plain server installation (host file system browsing for example) but for most things you shouldn't need to do this.

It also looks like your environment address isn't right - you're trying to use portainer_agent as the address where this should be the IP or hostname of the server you're connecting to. In the case of your local server, you could try localhost or 127.0.0.1, or the actual IP of the server.

The reason c…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SirMishaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
kind/question Questions on the platform
2 participants
Converted from issue

This discussion was converted from issue #9065 on July 27, 2023 04:17.