Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

docker pull <invalid image> errors out with traceback #568

Closed
concaf opened this issue Feb 22, 2016 · 0 comments
Closed

docker pull <invalid image> errors out with traceback #568

concaf opened this issue Feb 22, 2016 · 0 comments

Comments

@concaf
Copy link
Contributor

concaf commented Feb 22, 2016

Invalid image name still errors out with traceback after #441's resolution.

[vagrant@centos7-adb atomicapp]$ sudo atomicapp --verbose run foo --provider docker
2016-02-22 08:57:56,036 - [INFO] - main.py - Action/Mode Selected is: run
2016-02-22 08:57:56,036 - [DEBUG] - main.py - Final parsed cmdline: run --verbose foo --provider docker
2016-02-22 08:57:56,036 - [DEBUG] - main.py - NuleculeManager init app_path: /var/lib/atomicapp/foo-4714d136e9ec
2016-02-22 08:57:56,036 - [DEBUG] - main.py - NuleculeManager init image: foo
2016-02-22 08:57:56,037 - [DEBUG] - main.py - Request to unpack to foo to /var/lib/atomicapp/foo-4714d136e9ec
2016-02-22 08:57:56,037 - [INFO] - base.py - Unpacking image: foo to /var/lib/atomicapp/foo-4714d136e9ec
2016-02-22 08:57:56,159 - [INFO] - container.py - Pulling Docker image: foo
2016-02-22 08:57:56,159 - [DEBUG] - container.py - /usr/bin/docker pull foo
Using default tag: latest
Trying to pull repository docker.io/library/foo ... not found
Error: image library/foo:latest not found
2016-02-22 08:58:01,405 - [ERROR] - main.py - Could not pull Docker image foo
Traceback (most recent call last):
File "/home/vagrant/atomicapp/atomicapp/cli/main.py", line 101, in cli_run
nm.run(**argdict)
File "/home/vagrant/atomicapp/atomicapp/nulecule/main.py", line 224, in run
self.nulecule = self.unpack(dryrun=dryrun, config=self.answers)
File "/home/vagrant/atomicapp/atomicapp/nulecule/main.py", line 129, in unpack
nodeps=nodeps, dryrun=dryrun, update=update)
File "/home/vagrant/atomicapp/atomicapp/nulecule/base.py", line 104, in unpack
docker_handler.pull(image)
File "/home/vagrant/atomicapp/atomicapp/nulecule/container.py", line 63, in pull
raise Exception("Could not pull Docker image %s" % image)
Exception: Could not pull Docker image foo

@cdrage cdrage closed this as completed in bed3215 Mar 3, 2016
cdrage added a commit that referenced this issue Mar 3, 2016
Handle docker pull exception, improve #441, fix #568
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant