User Tools

Site Tools


docker:shell_usage_in_dockerfile

Shell usage in Dockerfile

The default shell is [“/bin/sh”, “-c”], which doesn't handle pipe fails when chaining commands. To process errors when using pipes use this :

SHELL ["/bin/bash", "-eux", "-o", "pipefail", "-c"]

References

docker/shell_usage_in_dockerfile.txt · Last modified: 2019/02/04 10:29 by adyxax