You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproducible on: golang:1.9.4
golang's image size is 735MB.
docker_command uses popen rather than check_output or check_call so the stderr can be captured and recorded for the logger. However, when trying to save a large image this does not work as it uses buffered memory.
Possible solutions:
subprocess.Popen can flush the buffer after it gets filled
subprocess.check_output can be used without shell=True and redirect stderr to a variable instead of the tty's stderr
Ignore the pipe to tty's std error and return some generic message for a failure to 'docker save'
The text was updated successfully, but these errors were encountered:
The docker save command is what creates the tar of the container
image. For larger images the pipe buffer is too small. So using
subprocess.check_output to get the result of docker save.
- Moved logic to check for sudo use in is_sudo function
- Added function docker_command_check for use of
subprocess.check_output to fork processes
- Used docker_command_check in the extract_image_metadata function
Resolvestern-tools#69
Signed-off-by: Nisha K <[email protected]>
Reproducible on: golang:1.9.4
golang's image size is 735MB.
docker_command uses popen rather than check_output or check_call so the stderr can be captured and recorded for the logger. However, when trying to save a large image this does not work as it uses buffered memory.
Possible solutions:
The text was updated successfully, but these errors were encountered: