Docker Community Forums

Share and learn in the Docker community.

Docker CMD not running after build

I have a created a Dockerfile which has a command CMD ["/tmp/"] in the last , which is trying to run a script.
The build is successful.
But when I am trying to run the command it is giving the following error.
$ docker run uaa-local-cmd:latest
standard_init_linux.go:219: exec user process caused: no such file or directory

Can anybody help what I am doing wrong.
If I remove the above line, the docker runs fine.

Details of docker
$ docker version
Client: Docker Engine - Community
Cloud integration: 1.0.12
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:14:53 2021
OS/Arch: windows/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:15:47 2021
OS/Arch: linux/amd64
Experimental: false
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
Version: 0.19.0
GitCommit: de40ad0