-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portainer Agent: Unable to retrieve local agent IP address (no swarm) #166
Comments
@JuezFenix do you mind running the agent with debug enabled and share the logs? Add the |
Updating this, I have noticed that this error only occurs when the container is edited or updated, but not when it is created from 0. |
I regularly have the same problem. Apparently it always occurs when containrrr/watchtower has initiated an update of the portainer container. I will try it again with EDIT: I just saw that I still have |
@svengo having the same issue with containrrr/watchtower
I also get since last release:
last lines repeating. |
@jobenvil The problem does not occur anymore after disabling |
@svengo Thanks for pinging back. Not sure why do you assume that I have |
i have the same issue as its tracked here: #203 . I don not use userns_mode: "host". But i also use watchtower. |
Wondering if this has been fixed? Just noticed I've been getting same problem with my agent container, also updated via watchtower |
Setting the following in the compose file fixed the issue for me:
|
Thank you, this worked for me! |
Seems like adding |
Using version 2.0.0, 1.5.1 or latest same issue here.
2021/01/12 14:31:32 [INFO] [main] [message: Agent running on Docker platform]
2021/01/12 14:31:32 [ERROR] [main,docker] [message: Unable to retrieve local agent IP address] [error: Error: No such container: da585a09ce2a]
2021/01/12 14:31:58 [WARN] [os,options] [message: the CAP_HOST_MANAGEMENT environment variable is deprecated and will likely be removed in a future version of Portainer agent]
Command used
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 portainer/agent
Docker inspect
[
]
The text was updated successfully, but these errors were encountered: