docker2 Why a dot(.) is used at the end of docker build command? Becasue it means a context. When you build an image by typing 'docker build .' or like 'docker -t some_tag -f some_dockerfile .' you are using the dot(.) at the end of it. The dot argument is for giving docker a context(PATH/ URL). By using the context, you can do things like copy your files into the image. 2023. 11. 16. Docker ENTRYPOINT VS CMD In Dockerfile, ENTRYPOINT is an executed binary, which is a process. And CMD deals with a list of arguments to go to the process, ENTRYPOINT. (ENTRYPOINT, CMD are no case sensitive, but here upper case for readability!) This is why you can use docker run image arguments like 'docker run image ls', because default entry point is /bin/sh -c so you can give it a linux command as argument .. 2023. 11. 16. 이전 1 다음