Dial tcp: lookup portainer_agent, no such host when using environment with agent #9296
-
Bug description Expected behavior Portainer Logs
Technical details:
Agent
Additional context I just followed the documentation |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It looks like creating a network solving the issue. By default, the default network is on bridge ? Could I have some issue with my newly created network ? We don't say that we need to create a network in the documentation.
|
Beta Was this translation helpful? Give feedback.
-
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 The reason creating a network "solved" the issue is that the default |
Beta Was this translation helpful? Give feedback.
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 trylocalhost
or127.0.0.1
, or the actual IP of the server.The reason c…