Ask questionsnotes for "Shell form ENTRYPOINT example" need to be cleaned up

File: engine/reference/

These points relate to Several points:

  1. The following Dockerfile does not build:
FROM ubuntu
CMD --ignored-param1
# docker build -t top .
Sending build context to Docker daemon  70.14kB
Error response from daemon: Dockerfile parse error line 6: Unknown flag: ignored-param1
  1. command output conflicts with argument(s?) to docker run in the example given:
$ docker run -it --name test top --ignored-param2

Mem: 1704184K used, 352484K free, 0K shrd, 0K buff, 140621524238337K cached
CPU:   9% usr   2% sys   0% nic  88% idle   0% io   0% irq   0% sirq
Load average: 0.01 0.02 0.05 2/101 7
    1     0 root     S     3168   0%   0% /bin/sh -c top -b cmd cmd2
    7     1 root     R     3164   0%   0% top -b

Command gives --ignored-param2, while output uses cmd cmd2. This is besides the fact that the container's output from top does not reveal the command line arguments for both sh and top; you need to use docker top test for that.

  1. The table at needs to be updated. Specifically the ENTRYPOINT exec_entry p1_entry, with CMD exec_cmd p1_cmd entry. I get /bin/sh -c exec_entry p1_entry sh -c exec_cmd p1_cmd

Answer questions jf

yeah, I know because I did see the result of docker top... but also because I investigated the process data (not necessary, but just helps to confirm things) in the container. Now the question remains: is this a bug? is it still intended that, according to the doc The shell form prevents any CMD or run command line arguments from being used, or has that changed?


Related questions

Typo in daemon.json configuration hot 1
Fedora repo link fail to sync hot 1
Golang SDK samples do not work hot 1
Docker EE + Windows Server 2016 + Linux containers? hot 1
Interlock docs missing some configuration options hot 1
Docker MS SQL exited with code 4294967295 hot 1
Installation not working on Ubuntu 19.10 hot 1
"docker-machine create" using Hyper-V driver generates IPv6 address hot 1
Mac OSX daemon.json Location hot 1
WARNING: Ignoring could not connect to server (check repositories file) hot 1
BUG getting 403 while attempting to download docker-ce hot 1
Error: invalid mount config for type "bind": bind source path does not exist hot 1
docker failed to start using gluster volume hot 1
Github User Rank List