Docker: ttyname failed: Inappropriate ioctl for device

docker exec $id bash -l -c "echo \"\" > /werm/log/latest.log"

add -t option

docker exec -t $id bash -l -c "echo \"\" > /werm/log/latest.log"

Leave a Reply

Your email address will not be published.