If pushing a docker app to Tanzu Application Service (TAS) that does not include the
sh
binary it may result in this error:
{"instance"=>"a2801ffd-8eb0-405a-ac6e-e247c850c9eb", "index"=>1, "cell_id"=>"eb5278b3-86f1-4b00-9346-0009e30dd716", "reason"=>"CRASHED", "exit_description"=>"exec failed: container_linux.go:380: starting container process caused: exec: \"sh\": executable file not found in $PATH", "crash_count"=>8, "crash_timestamp"=>1670874447181230698, "version"=>"caa6d98e-625a-4aa0-b9ef-933e48b9d6a2"}
According to the open source
documentation,
sh
is only required for cf ssh support.
In 2016, to address
CVE-2016-0708 , a post_setup_hook was added to Diego's release. This is no longer needed, as the buildpack is updated to handle it. However, the post_setup_hook is still present and this hook means that docker_app_lifecycle apps fail to run when an image does not contain the
sh
binary.