-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: improvement logs on pulling image (#748)
Previously when we call `checkIfImageNotExists` function we check for errors and if image does not exists on the same statement and only log if some errors occurs, which turn the code a bit confuse to read. This commit change to check for errors and if image does not exists on different statements and also add a debug logging to inform that image does not exists on cache and we will try to pull from registry. This commit also add some tests to assert that we are pulling the image only if its not exists on cache. Signed-off-by: Matheus Alcantara <[email protected]>
- Loading branch information
1 parent
c9b14d7
commit b79058f
Showing
3 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters