How can I know the default command a container runs using a base image without actually creating a new container from the image?
is some concept I am missing here? I am writing a dockerfile using a base image but I dont know what to put in CMD section.
You can always do
docker image inspect <image>
on the terminal where you will get a bunch of information.I run
docker image inspect busybox
(Just some random image), and I got the following resultHere you can see the
CMD
field