The same Dockerfile used to work fine last year, but I cannot install git in fresh opensuse/tumbleweed image:
docker run --rm opensuse/tumbleweed zypper -n install --no-recommends git-core
...
(37/39) Installing: openssh-server-8.4p1-4.1.x86_64 ...................................................................................................................................................................................................................................[error]Installation of openssh-server-8.4p1-4.1.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: find: '/etc/init.d/rc[35].d': No such file or directory
ERROR: neither useradd nor busybox found!
error: %prein(openssh-server-8.4p1-4.1.x86_64) scriptlet failed, exit status 1
error: openssh-server-8.4p1-4.1.x86_64: install failed
Installing shadow or busybox packages not helping. Interactively I can ignore the error in openssh-server (which is not needed anyway) and have git installed after that. But I need to do it in Dockerfile, any way to do it?
is working for me.
I’m using custom python docker client with templates for building dockerfiles, so need to figure out how to set that option there, but that’s a separate story.
In the light of this information, it is not really an openSUSE/TW issue, more due to the way that openssh-server is being packaged now in TW and the way docker is packaged on Debian/Ubuntu.