Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/create: Require -y to pull an image when not connected to a terminal
It doesn't make sense to show the image download prompt when the standard input and output streams are redirected to something other than a terminal device. During such non-interactive use, there's no way for the user to see the prompt and the size of the image and then make a decision based on them. The decision has to be made differently and earlier. The user will either never download or always download or will use 'skopeo inspect' to decide for themself. Secondly, when the input and output are not connected to a terminal, the terminal escape sequences and the terminal-specific ioctl(2) requests used to show the prompt won't work anyway. containers#1428
- Loading branch information