-
-
Save ahoward/1d950df74df9d5eeacf3c939e348cf0e to your computer and use it in GitHub Desktop.
fixes "# mesg: ttyname failed: Inappropriate ioctl for device" warnings during docker build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fixes "# mesg: ttyname failed: Inappropriate ioctl for device" warnings when building docker | |
# | |
echo '#! /bin/sh' > /usr/bin/mesg | |
chmod 755 /usr/bin/mesg | |
# all this does is replace the 'mesg' command with a no-op that always succeeds. | |
# do this *early* in your Dockerfile somewhere. | |
# from a security persprective this is also fine because it relates to multi-user unix systems, | |
# not single user/contrained docker images. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is what Ive been looking for! Thx