Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6435

Docker image not starting after building on Ubuntu 24.04 [closed]

$
0
0

I have a problem that I can't solve. Recently, I decided to update my docker image with the new Ubuntu distribution on which it will be based.Previously I was using Ubuntu 22.04.After updating the docker file and building the image. When I try to run it, I get the message:

starting container process caused: exec: \"/usr/sbin/sshd\": stat /usr/sbin/sshd: no such file or directory: unknown

The problem is probably starting the ssh service. I do this in the docker file as follows:

Sending required files for sshd: RUN sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd

I create an sshd folder: RUN mkdir -p /var/run/sshd

And then I start the service: CMD ["/usr/sbin/sshd", "-D"]

I don't really know what changed in Ubuntu 24.04 since in 22.04 ssh started correctly.


Viewing all articles
Browse latest Browse all 6435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>