Thanks it works.....

On Mon, May 2, 2016 at 1:32 PM, Evan Krall <[email protected]> wrote:

> Your command /usr/sbin/sshd -D && mkdir /tmp/test will run sshd in the
> foreground, wait until it finishes, and then run mkdir.
>
> Perhaps you want to put mkdir before sshd, since mkdir should complete
> quickly.
>
> On Mon, May 2, 2016 at 1:13 PM, Rayees Namathponnan <[email protected]
> > wrote:
>
>> Hi All,
>>
>> In Docker file i have entry point  ENTRYPOINT ["/usr/sbin/sshd", "-D"]
>> I want to run run some command (eg : mkdir /tmp/test ) while staring the 
>> container, since you add command in
>> configuration your default entry point wont work, so I added command like 
>> "/usr/sbin/sshd -D && mkdir /tmp/test "
>> with the expectation both ssh start and mkdir will be executed while 
>> strating the contanier.
>>
>> Unfortunately mkdir command not executing but ssh works fine, not sure 
>> command i provided worked itself
>> or container started with entry point provided in docker file
>>
>> Any help ?
>>
>>
>> Regards,
>> Rayees
>>
>>
>>
>

Reply via email to