I am trying to push an app that uses a custom base image to a local device.
# Dockerfile
FROM sswm_main
The base image sswm_main
is local to my system:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
sswm_main latest 07d2f46fa20a About an hour ago 334MB
I am under the impression that this should work (similar to https://github.com/balena-io/balena-cli/issues/960). But when I push, I get this error:
$ sudo balena local push abcd123.local -f -s .
* Building..
- Stopping and removing any previous 'local-app' container
- Uploading build context & starting build...
Step 1/9 : FROM sswm_main
Push failed. Error: pull access denied for sswm_main, repository does not exist or may require 'balena login' Error: pull access denied for sswm_main, repository does not exist or may require 'balena login'
at Stream.<anonymous> (/usr/local/lib/node_modules/balena-cli/node_modules/balena-sync/build/docker-utils.js:146:23)
at Stream.emit (events.js:182:13)
at Stream.EventEmitter.emit (domain.js:442:20)
at drain (/usr/local/lib/node_modules/balena-cli/node_modules/through/index.js:36:16)
at Stream.stream.queue.stream.push (/usr/local/lib/node_modules/balena-cli/node_modules/through/index.js:45:5)
at Parser.parser.onToken (/usr/local/lib/node_modules/balena-cli/node_modules/JSONStream/index.js:132:18)
at Parser.proto.write (/usr/local/lib/node_modules/balena-cli/node_modules/jsonparse/jsonparse.js:135:34)
at Stream.<anonymous> (/usr/local/lib/node_modules/balena-cli/node_modules/JSONStream/index.js:23:12)
at Stream.stream.write (/usr/local/lib/node_modules/balena-cli/node_modules/through/index.js:26:11)
at IncomingMessage.ondata (_stream_readable.js:663:20)
at IncomingMessage.emit (events.js:182:13)
at IncomingMessage.EventEmitter.emit (domain.js:442:20)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at IncomingMessage.Readable.push (_stream_readable.js:219:10)
at HTTPParser.parserOnBody (_http_common.js:122:22)
at Socket.socketOnData (_http_client.js:432:20)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:442:20)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at TCP.onread (net.js:638:20)
What am I doing wrong here?