Skip to content

Instantly share code, notes, and snippets.

@ediblecode
Created June 18, 2020 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ediblecode/6d4d7a40aebaa1d1fe87db0c7e90cdd6 to your computer and use it in GitHub Desktop.
Save ediblecode/6d4d7a40aebaa1d1fe87db0c7e90cdd6 to your computer and use it in GitHub Desktop.
Pull docker images in the background
# 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