Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #docker #Redirecting #Both #stdout #stderr #file
ADD COMMENT
Topic
Name
1+7 =