Defines the program that will be run within the container when it starts.
For nginx image is the:
CMD ["nginx"] # nginx command
For the mysql image is the:
CMD ["mysqld"] # mysql command
If this process finishes or crashes - the container exits as well.CMD sleep 5
CMD ["sleep", "5"]
docker run ubuntu [COMMAND]
for example:
docker run ubuntu sleep 10