Alpine No Bash
Docker
Troubleshooting
Errors
因为 alpine 没有 bash ,会报 no such file
docker run --rm -it \
-v $PWD:/ansible \
-w /ansible \
willhallonline/ansible:2.9.27-alpine-3.16 \
./deploy.sh 8.138.36.150 kubectl
exec ./deploy.sh: no such file or directory
使用 /bin/sh
#!/bin/sh