Skip to content

Conversation

@kjong
Copy link
Member

@kjong kjong commented Mar 19, 2020

Fixes #832

Tries to pull docker images up to 2 times before throwing an error.

Copy link
Member

@LordJashin32 LordJashin32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to do installs normally. I edited a service install to force a retry. And retry works:

root@raspberrypi:/home/pi/Public/cli/services# cd ..
root@raspberrypi:/home/pi/Public/cli# ./cli.sh services install ntopng
unknown command
root@raspberrypi:/home/pi/Public/cli# ./cli.sh services ntopng install
Pulling ntopng ... error

ERROR: for ntopng  b"pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
ERROR: pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
retrying pull
Pulling ntopng ... error

ERROR: for ntopng  b"pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
ERROR: pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
retrying pull
error pulling docker image
root@raspberrypi:/home/pi/Public/cli#

Copy link
Member

@LordJashin32 LordJashin32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to do installs normally. I edited a service install to force a retry. And retry works:

root@raspberrypi:/home/pi/Public/cli/services# cd ..
root@raspberrypi:/home/pi/Public/cli# ./cli.sh services install ntopng
unknown command
root@raspberrypi:/home/pi/Public/cli# ./cli.sh services ntopng install
Pulling ntopng ... error

ERROR: for ntopng  b"pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
ERROR: pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
retrying pull
Pulling ntopng ... error

ERROR: for ntopng  b"pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
ERROR: pull access denied for jonbackhaus343/ntopng, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
retrying pull
error pulling docker image
root@raspberrypi:/home/pi/Public/cli#

@dogi dogi merged commit 0c1125e into master Mar 23, 2020
@dogi dogi deleted the services-docker-retry branch March 23, 2020 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

services: catch docker dns delays

4 participants