Docker Alpine /bin/sh apk not found

℡╲_俬逩灬. 提交于 2019-11-30 18:21:44

In the end we upgraded our projects to use this Docker Maven plugin: https://github.com/fabric8io/fabric8-maven-plugin. No issue thus far.

I ran into something like this. It completely blew my mind, and I was questioning my sanity for a bit until I realized that /sbin wasn't in my container's path (completely my fault: this was a change that I made when I was trying to clean up my CI pipeline).

If you type command -v apk in an interactive session in your container's base image and compare that directory with the container's $PATH that should get you squared away. If command -v apk doesn't work for you, you could try to find it via find / -name apk -type f -exec dirname "{}" ";" and ensure that path is part of $PATH

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!