I have CMD in my Dockerfile I created container with "test:2.0" I want to pass the argument "cmd" but I am getting error. please help me with correct syntax
Output:-
$ docker container run -P test:2.0 cmd ls
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"cmd\": executable file not found in $PATH": unknown.
ERRO[0000] error waiting for container: context canceled
$ docker container run -P test:2.0:cmd ls
docker: invalid reference format.
See 'docker run --help'.
I have CMD in my Dockerfile I created container with "test:2.0" I want to pass the argument "cmd" but I am getting error. please help me with correct syntax
Output:-
$ docker container run -P test:2.0 cmd ls
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"cmd\": executable file not found in $PATH": unknown.
ERRO[0000] error waiting for container: context canceled
$ docker container run -P test:2.0:cmd ls docker: invalid reference format. See 'docker run --help'.