{"action":"closed","issue":{"url":"https://api.github.com/repos/vpavlin/atomicapp-run/issues/12","labels_url":"https://api.github.com/repos/vpavlin/atomicapp-run/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/vpavlin/atomicapp-run/issues/12/comments","events_url":"https://api.github.com/repos/vpavlin/atomicapp-run/issues/12/events","html_url":"https://github.com/vpavlin/atomicapp-run/issues/12","id":69861689,"number":12,"title":"docker tries to pull even if image is available locally","user":{"login":"goern","id":260331,"avatar_url":"https://avatars.githubusercontent.com/u/260331?v=3","gravatar_id":"","url":"https://api.github.com/users/goern","html_url":"https://github.com/goern","followers_url":"https://api.github.com/users/goern/followers","following_url":"https://api.github.com/users/goern/following{/other_user}","gists_url":"https://api.github.com/users/goern/gists{/gist_id}","starred_url":"https://api.github.com/users/goern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goern/subscriptions","organizations_url":"https://api.github.com/users/goern/orgs","repos_url":"https://api.github.com/users/goern/repos","events_url":"https://api.github.com/users/goern/events{/privacy}","received_events_url":"https://api.github.com/users/goern/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-21T14:30:47Z","updated_at":"2015-04-21T15:43:21Z","closed_at":"2015-04-21T15:43:21Z","body":"containerapp.py tries to pull the image in question in anyway, even if the image is locally available\r\n\r\n```\r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo containerapp --dry-run install nulecule/mongodb-24-rhel7\r\nNamespace(APP='nulecule/mongodb-24-rhel7', action='install', answers='/home/tester/Source/mongoDB-nulecule/containerapp/answers.conf', dryrun=True, func=<function cli_install at 0x13771b8>, quiet=False, recursive=True, target_path=None, update=False, verbose=False)\r\n2015-04-21 15:43:03,782 - containerapp.install - INFO - App name is nulecule/mongodb-24-rhel7, will be populated to None\r\nTrying to pull repository docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7 ... not found\r\nTrying to pull repository docker.io/nulecule/mongodb-24-rhel7 ... not found\r\nFATA[0004] Error: image nulecule/mongodb-24-rhel7:latest not found \r\nTraceback (most recent call last):\r\n  File \"/bin/containerapp\", line 9, in <module>\r\n    load_entry_point('containerapp==0.1', 'console_scripts', 'containerapp')()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 101, in main\r\n    cli.run()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 83, in run\r\n    args.func(args)\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 18, in cli_install\r\n    install.install()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/install.py\", line 84, in install\r\n    self.utils.pullApp(self.params.app)\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/utils.py\", line 96, in pullApp\r\n    raise Exception(\"Couldn't pull %s\" % image)\r\nException: Couldn't pull nulecule/mongodb-24-rhel7\r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo docker images\r\nREPOSITORY                   TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\nnulecule/mongodb-24-rhel7    latest              d90f89ba589a        About an hour ago   451.8 MB\r\nopenshift/mongodb-24-rhel7   latest              4eed528d5ae1        3 hours ago         504 MB\r\nrhel7                        7.1-4               10acc31def5d        10 weeks ago        154.1 MB\r\nrhel7                        latest              10acc31def5d        10 weeks ago        154.1 MB\r\ndocker.io/kubernetes/pause   latest              6c4579af347b        9 months ago        239.8 kB\r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo docker tag d90f89ba589a docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7\r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo docker push d90f89ba589a\r\nFATA[0000] You cannot push a \"root\" repository. Please rename your repository to <user>/<repo> (ex: <user>/docker.io/d90f89ba589a) \r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo containerapp --dry-run install nulecule/mongodb-24-rhel7\r\nNamespace(APP='nulecule/mongodb-24-rhel7', action='install', answers='/home/tester/Source/mongoDB-nulecule/containerapp/answers.conf', dryrun=True, func=<function cli_install at 0xc401b8>, quiet=False, recursive=True, target_path=None, update=False, verbose=False)\r\n2015-04-21 15:43:45,366 - containerapp.install - INFO - App name is nulecule/mongodb-24-rhel7, will be populated to None\r\nTrying to pull repository docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7 ... not found\r\nTrying to pull repository docker.io/nulecule/mongodb-24-rhel7 ... not found\r\nFATA[0002] Error: image nulecule/mongodb-24-rhel7:latest not found \r\nTraceback (most recent call last):\r\n  File \"/bin/containerapp\", line 9, in <module>\r\n    load_entry_point('containerapp==0.1', 'console_scripts', 'containerapp')()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 101, in main\r\n    cli.run()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 83, in run\r\n    args.func(args)\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 18, in cli_install\r\n    install.install()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/install.py\", line 84, in install\r\n    self.utils.pullApp(self.params.app)\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/utils.py\", line 96, in pullApp\r\n    raise Exception(\"Couldn't pull %s\" % image)\r\nException: Couldn't pull nulecule/mongodb-24-rhel7\r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo docker push d90f89ba589a\r\nFATA[0000] You cannot push a \"root\" repository. Please rename your repository to <user>/<repo> (ex: <user>/docker.io/d90f89ba589a) \r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo docker push docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7\r\nThe push refers to a repository [docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7] (len: 1)\r\nSending image list\r\nPushing repository docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7 (1 tags)\r\nImage 10acc31def5d already pushed, skipping\r\n9e3ab6f17775: Image successfully pushed \r\n25c72db89025: Image successfully pushed \r\ne10cc8504a94: Image successfully pushed \r\n7b8da24b9444: Image successfully pushed \r\n91866a38a99b: Image successfully pushed \r\n36d2a7c3b424: Image successfully pushed \r\n6d1255a6b23c: Image successfully pushed \r\n9750fbae5f2e: Image successfully pushed \r\n56a9345eb35a: Image successfully pushed \r\n91d63297c20e: Image successfully pushed \r\n85790c0a5ef4: Image successfully pushed \r\n08873fb74bc0: Image successfully pushed \r\nd90f89ba589a: Image successfully pushed \r\nPushing tag for rev [d90f89ba589a] on {http://docker-registry.usersys.redhat.com/v1/repositories/nulecule/mongodb-24-rhel7/tags/latest}\r\n[tester@rhel7server-mongodb-developer containerapp]$ sudo containerapp --dry-run install nulecule/mongodb-24-rhel7\r\n[sudo] password for tester: \r\nNamespace(APP='nulecule/mongodb-24-rhel7', action='install', answers='/home/tester/Source/mongoDB-nulecule/containerapp/answers.conf', dryrun=True, func=<function cli_install at 0x1c8e1b8>, quiet=False, recursive=True, target_path=None, update=False, verbose=False)\r\n2015-04-21 16:23:38,131 - containerapp.install - INFO - App name is nulecule/mongodb-24-rhel7, will be populated to None\r\nTrying to pull repository docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7 ...\r\nd90f89ba589a: Download complete \r\n10acc31def5d: Download complete \r\n9e3ab6f17775: Download complete \r\n25c72db89025: Download complete \r\ne10cc8504a94: Download complete \r\n7b8da24b9444: Download complete \r\n91866a38a99b: Download complete \r\n36d2a7c3b424: Download complete \r\n6d1255a6b23c: Download complete \r\n9750fbae5f2e: Download complete \r\n56a9345eb35a: Download complete \r\n91d63297c20e: Download complete \r\n85790c0a5ef4: Download complete \r\n08873fb74bc0: Download complete \r\nStatus: Image is up to date for docker-registry.usersys.redhat.com/nulecule/mongodb-24-rhel7:latest\r\ne4a17ad77006c53d5f4d053a75f4eedfb792b94f0956aae644c30a381bcb8522\r\n2015-04-21 16:23:41,933 - containerapp.utils - INFO - Using temporary directory /tmp/appent-mongodb-24-rhel73ilo6l\r\nFATA[0000] Error response from daemon: Could not find the file /application-entity in container mongodb-24-rhel7 \r\nmongodb-24-rhel7\r\nTraceback (most recent call last):\r\n  File \"/bin/containerapp\", line 9, in <module>\r\n    load_entry_point('containerapp==0.1', 'console_scripts', 'containerapp')()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 101, in main\r\n    cli.run()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 83, in run\r\n    args.func(args)\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/cli/main.py\", line 18, in cli_install\r\n    install.install()\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/install.py\", line 88, in install\r\n    self.params.loadMainfile(mainfile_path)\r\n  File \"/usr/lib/python2.7/site-packages/containerapp-0.1-py2.7.egg/containerapp/params.py\", line 70, in loadMainfile\r\n    raise Exception(\"%s not found: %s\" % (MAIN_FILE, path))\r\nException: nulecule not found: /tmp/appent-mongodb-24-rhel73ilo6l/application-entity/nulecule\r\n[tester@rhel7server-mongodb-developer containerapp]$\r\n```"}}