Created
June 18, 2020 20:22
-
-
Save ediblecode/6d4d7a40aebaa1d1fe87db0c7e90cdd6 to your computer and use it in GitHub Desktop.
Pull docker images in the background
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
# See https://github.com/moby/moby/issues/16106#issuecomment-310781836 for pulling images in parallel | |
# Nohup (no hang up) with trailing ampersand allows running the command in the background | |
# The </dev/null bits redirects the outputs to files rather than strout/err | |
nohup sh -c "echo selenium/hub:3.141.59-zirconium mcr.microsoft.com/dotnet/core/aspnet:3.1 | xargs -P10 -n1 docker pull" </dev/null >nohup.out 2>nohup.err & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment