ctr run equivalent for docker run #6137
-
|
Hi, Currently I have a docker image with Entry Point and Command defined. While I run the docker image I use the command /bin/bash. docker run -it <image_name> /bin/bash docker ps Question: ctr task ls How to run the container? I know the container is stopped because the container have the args: docker-entrypoint.sh and container stopped after completing the execution. "args": [ How to run the container to by including /bin/bash, so that container is running as expected? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Add /bin/bash to the end of your command. I would also recommend using https://github.com/containerd/nerdctl which will give you a more Docker like experience. ctr is not really intended for general usage. |
Beta Was this translation helpful? Give feedback.
Add /bin/bash to the end of your command.
I would also recommend using https://github.com/containerd/nerdctl which will give you a more Docker like experience.
ctr is not really intended for general usage.