Open mjkl-gh opened 4 years ago
I see a similar issue when I use an ethernet connection on an RPi3
I've seen it too on ethernet connection. I found out it had to do something with the user, or lack there of, that's issuing the commands.
As mentioned before using docker swarm does work since it starts the containers differently.
Maybe a command can be sent to swap user and it will work. Conclusion is I gave up on hypriot entirely as the software didn't match my use-case that well.
When I flash a raspberry pi zero w it seems to be unable to run docker containers from the runcmd part of the user-data
First of all, it throws the following error:
However, it is connected to my wifi as I can see in my router. Moreover, it was able to fetch my github ssh keys and performs apt update fine (I've put this in runcmd to make sure it is done after wifi has been connected)
However, after that I try to pull the portainer image but then it throws an error:
I know wifi isn't officially supported by cloud-init but I'm not sure it's a wifi related issue. All other internet related things seem to work. Also the error message seems to suggest it wasn't unable to connect, but the connection was refused somehow.
When I ssh into the device the docker run command works as normal. Also when i try the rainbow example (which uses docker swarm) everything seems to work fine
My user-data.yml for reference: