User Tools

Site Tools


docker:shell_usage_in_dockerfile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docker:shell_usage_in_dockerfile [2019/02/04 10:29]
adyxax created
docker:shell_usage_in_dockerfile [2020/04/14 12:09] (current)
adyxax
Line 1: Line 1:
 ====== 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 : <​code>​ +~~REDIRECT>​https://​newwiki.adyxax.org/blog/2019/​02/​04/​shell-usage-in-dockerfile/~~
-SHELL ["/​bin/​bash",​ "​-eux",​ "​-o",​ "​pipefail",​ "​-c"​] +
-</code> +
- +
-===== References ===== +
- +
-  * https://bearstech.com/societe/blog/securiser-et-optimiser-notre-liste-des-bonnes-pratiques-liees-aux-dockerfiles/+
docker/shell_usage_in_dockerfile.txt · Last modified: 2020/04/14 12:09 by adyxax