docker Redirecting Both stdout and stderr file
FROM alpine:latest
CMD cat /etc/alpine-release file_does_not_exist.txt > /home/output.txt 2>/home/error.txt
docker Redirecting Both stdout and stderr file
FROM alpine:latest
CMD cat /etc/alpine-release file_does_not_exist.txt > /home/output.txt 2>/home/error.txt
docker Redirecting Both stdout and stderr file
$ docker run -a stderr dockeroutput
cat: can't open 'file_does_not_exist.txt': No such file or directory
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us