简体   繁体   中英

Docker – exec: "bash": executable file not found in $PATH

I have used this

docker exec -it 027285d69613 bash

And got this error

在此处输入图像描述

The truth is, not every image is using the bash shell; try sh shell.

docker exec -it 027285d69613 sh

Refer to this blog for more details. https://mkyong.com/docker/docker-exec-bash-executable-file-not-found-in-path/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM