![]() This means that anyone who runs those images will get dropped into an interactive shell by default (assuming, of course, that they used the -i and -t flags with the docker run command). Many of the Linux distro base images that you find on the Docker Hub will use a shell like /bin/sh or /bin/bash as the the CMD executable. Trying to run an image which doesn't have an ENTRYPOINT or CMD declared will result in an errorįATA Error response from daemon: No command specified ![]() ![]() In fact, if you want your image to be runnable (without additional docker run command line arguments) you must specify an ENTRYPOINT or CMD. Ultimately, both ENTRYPOINT and CMD give you a way to identify which executable should be run when a container is started from your image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |