Kali linux docker container7/8/2023 Since you're in non-interactive mode, bash is going to exit immediately. Read this question about ENTRYPOINT and CMD. Setting ENTRYPOINT to /bin/bash means that docker run. There are several problems with your Dockerfile. $ telnet localhost 1234Īny idea why I'm not getting expected output. I am trying this as this is sample from book docker in practice in chapter 2 by manning for running docker as daemon process.Īs per author I should get below result. In another terminal, I run the below command. docker run -d -i -p 1234:1234 -name daemon nc-ubuntu nc -l 1234 I created image from the above docker file and run the docker container using the image by running below command.
0 Comments
Leave a Reply. |