
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime & echo $TZ > /etc/timezone Here is my Dockerfile for my debug_image: FROM centos:7 This ended in the same result, sshd is not running:Īs I investigate further, I think I am trying to launch two processes in my Docker container and that I will not be able to do this: Docker multiple entrypoints Where I am trying to execute two commands on container run, so I tried changing my ENTRYPOINT to the following and removing the CMD altogether: ENTRYPOINT

I started to realize, after rereading that article that using ENTRYPOINT and CMD together is used to build a single string command to be executed where the docker run user can override CMD arguments if desired.

I am trying to execute two command strings. So you can combine ENTRYPOINT and CMD, see here though the author of the article is building a single string command to execute using ENTRYPOINT and CMD combined. With my workaround I can sssh into the container. My current work around to get sshd running is: docker exec -d bash -c "/usr/sbin/sshd -D" You can see that my ENTRYPOINT, "dotnet " is combined with "/usr/sbin/sshd -D" in the output from docker exec ps aux I cannot get sshd to start when I run my container and I think it has something to do with my combination of a ENTRYPOINT and CMD in my Dockerfile. In a CentOS 7 base Docker container with docker run because I have seen it done elsewhere
