I’ve been following the Getting Started for my PI2: https://resinos.io/docs/raspberry-pi2/gettingstarted/#running-your-first-container
But encountered a problem running sudo resin local push resin.local --source .
:
- Building…
- Stopping and removing any previous ‘myapp’ container
- Uploading build context & starting build…
Push failed. Error: (HTTP code 500) server error - Dockerfile parse error line 1: unknown instruction: Error: (HTTP code 500) server error - Dockerfile parse error line 1: unknown instruction:
at /usr/lib/node_modules/resin-cli/node_modules/docker-modem/lib/modem.js:254:17
at IncomingMessage. (/usr/lib/node_modules/resin-cli/node_modules/docker-modem/lib/modem.js:281:9)
at IncomingMessage.emit (events.js:187:15)
at IncomingMessage.EventEmitter.emit (domain.js:442:20)
at endReadableNT (_stream_readable.js:1085:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
On the host journald I see:>
Jul 19 10:54:35 resin healthdog[720]: :1:1: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:2: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:3: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:4: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:5: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:6: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:7: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:8: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:9: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:10: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:11: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:12: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:13: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:14: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:15: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:16: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:17: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:18: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:1: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:2: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:3: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:4: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:5: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:6: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:7: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:8: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:9: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:10: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:11: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:12: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:13: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:14: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:15: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:16: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:17: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: :1:18: illegal character NUL
Jul 19 10:54:35 resin healthdog[720]: time=“2018-07-19T10:54:35.955405148Z” level=error msg="Handler for POST /build returned error: Dockerfile parse error line 1: unknown instruction: \x00\x00\x00\x00\x00\x>
But if I grab the POST data out of Wireshark the tarfile looks good.
I’m not sure where to look next, please help!
Thanks.