balena-os / resin-device-toolbox

[DEPRECATED] The official Resin Device Toolbox CLI for resinOS
Apache License 2.0
14 stars 3 forks source link

rdt push error on Windows 10 #52

Closed nmaas87 closed 7 years ago

nmaas87 commented 7 years ago

I tried following:

git clone https://github.com/nmaas87/resin-openwrt-flask-app.git cd resin-openwrt-flask-app rdt push [IPofMyRPi3WithResinOS] –s . –n flask

he does built the container successfully, however, after that, this happens:

On the resinOS Device, the container does not show up on docker ps, but on docker ps -a: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0b1142438ee7 flask "python /app/app.py" 4 minutes ago Created flask root@resin:~#

However, port 80 is not bound to it and it stopped working. Starting the container via hand docker start 0b11 does work:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0b1142438ee7 flask "python /app/app.py" 6 minutes ago Up 43 seconds 80/tcp flask

however, even though it is running, I cannot reach my flask instance. So, something is wrong here - I can access my container on the RPi directly (curl 172.17.0.2) - but not from outside the RPi, so something like the routing has been gone wrong... And that is maybe we happens on push. Any idea? Pushing this container from Ubuntu works.

nmaas87 commented 7 years ago

OK it seems like something with the path description between Windows and resinOS is wrong. On Bash for Windows it works.

lekkas commented 7 years ago

Hey @nmaas87 , thanks for reporting this. I've just sent a PR to add a dependency section for Windows in the README. rdt has not been tested on the standard Windows cmd shell, but it should work fine in Bash environments.

nmaas87 commented 7 years ago

@lekkas Thanks for including this in the README, that should help other people getting started 👍

lekkas commented 7 years ago

Merged #53