Failed to run image. Error: (HTTP code 400) unexpected - No command specified

I am new to docker. I installed Docker on Ubuntu 20.04.5 LTS and wanted to run the image called cgyan/dpabi:latest.

It showed that the image was “pull complete”. But when I clicked the run bottom, I got an error: “Failed to run image. Error: (HTTP code 400) unexpected - No command specified”. I have used the command docker ps -a --no-trunc but cannot find the command.

In addition, I have checked the docker service is up and running. I can also use the command sudo docker run hello-world to downloads a test image and runs it in a container.

How can I solve this problem?

docker version
Docker Engine - Community
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:08:01 2023
 OS/Arch:           linux/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.25.2 (129061)
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:32:16 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
docker pull cgyan/dpabi:latest
latest: Pulling from cgyan/dpabi
2ab09b027e7f: Pull complete 
1213b11db2b8: Pull complete 
3b6d92efe444: Pull complete 
7fb336e143d9: Pull complete 
839992059582: Pull complete 
603484a61359: Pull complete 
81b0da3b7539: Pull complete 
bdb3dc1bc855: Pull complete 
1b49aa74a151: Pull complete 
4f4fb700ef54: Pull complete 
7732d32f8e4d: Pull complete 
37ce2435ceb2: Pull complete 
241f66409d97: Pull complete 
c0dfa28d4084: Pull complete 
cec4cd04407e: Pull complete 
e0700b69725d: Pull complete 
c9e4e4a91301: Pull complete 
3902d0400def: Pull complete 
668b2c36e7b5: Pull complete 
273b6b6ee7f1: Pull complete 
48d65438291e: Pull complete 
40a68ab867b2: Pull complete 
579270f000ea: Pull complete 
542bbdca95fd: Pull complete 
2e428c630aaa: Pull complete 
ea203ca86140: Pull complete 
f8b9e1231dd5: Pull complete 
1d962a29ecf0: Pull complete 
60c1584fad8a: Pull complete 
c1356b0506eb: Pull complete 
Digest: sha256:f97f08ca3c3846f6b2c1d89d869c8aea3325f26c76951281f6a566c49845e79d
Status: Downloaded newer image for cgyan/dpabi:latest
docker.io/cgyan/dpabi:latest

What's Next?
  1. Sign in to your Docker account → docker login
  2. View a summary of image vulnerabilities and recommendations → docker scout quickview cgyan/dpabi:latest
docker ps -a --no-trunc

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(It showed noting.)

docker inspect cgyan/dpabi:latest
[
    {
        "Id": "sha256:6022b1c1e406560318dbb9b2d6a314830221156e1f27915a9f8e35f1d109446e",
        "RepoTags": [
            "cgyan/dpabi:latest"
        ],
        "RepoDigests": [
            "cgyan/dpabi@sha256:f97f08ca3c3846f6b2c1d89d869c8aea3325f26c76951281f6a566c49845e79d"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2023-11-07T12:17:09.714144627+08:00",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "Chao-Gan Yan <ycg.yan@gmail.com>",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/opt/conda/envs/fmriprep/bin:/opt/workbench/bin_linux64:/opt/ants/bin:/opt/afni-latest:/opt/freesurfer/bin:/opt/freesurfer/tktools:/opt/freesurfer/mni/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "DEBIAN_FRONTEND=noninteractive",
                "LANG=C.UTF-8",
                "LC_ALL=C.UTF-8",
                "OS=Linux",
                "FS_OVERRIDE=0",
                "FIX_VERTEX_AREA=",
                "FSF_OUTPUT_FORMAT=nii.gz",
                "FREESURFER_HOME=/opt/freesurfer",
                "SUBJECTS_DIR=/opt/freesurfer/subjects",
                "FUNCTIONALS_DIR=/opt/freesurfer/sessions",
                "MNI_DIR=/opt/freesurfer/mni",
                "LOCAL_DIR=/opt/freesurfer/local",
                "MINC_BIN_DIR=/opt/freesurfer/mni/bin",
                "MINC_LIB_DIR=/opt/freesurfer/mni/lib",
                "MNI_DATAPATH=/opt/freesurfer/mni/data",
                "PERL5LIB=/opt/freesurfer/mni/lib/perl5/5.8.5",
                "MNI_PERL5LIB=/opt/freesurfer/mni/lib/perl5/5.8.5",
                "AFNI_IMSAVE_WARNINGS=NO",
                "AFNI_PLUGINPATH=/opt/afni-latest",
                "ANTSPATH=/opt/ants",
                "LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/opt/conda/lib:/opt/workbench/lib_linux64:/opt/fsl-6.0.5.1/lib:/opt/mcr/v98/runtime/glnxa64:/opt/mcr/v98/bin/glnxa64:/opt/mcr/v98/sys/os/glnxa64:/opt/mcr/v98/sys/opengl/lib/glnxa64:/opt/mcr/v98/extern/bin/glnxa64",
                "HOME=/home/fmriprep",
                "MAMBA_ROOT_PREFIX=/opt/conda",
                "CPATH=/opt/conda/envs/fmriprep/include:",
                "PYTHONNOUSERSITE=1",
                "FSLDIR=/opt/conda/envs/fmriprep",
                "FSLOUTPUTTYPE=NIFTI_GZ",
                "FSLMULTIFILEQUIT=TRUE",
                "FSLLOCKDIR=",
                "FSLMACHINELIST=",
                "FSLREMOTECALL=",
                "FSLGECUDAQ=cuda.q",
                "MKL_NUM_THREADS=1",
                "OMP_NUM_THREADS=1",
                "IS_DOCKER_8395080871=1",
                "XAUTHORITY=/home/fmriprep/.Xauthority",
                "MATLAB_VERSION=R2020a",
                "MCR_VERSION=v98",
                "MCR_INHIBIT_CTF_LOCK=1",
                "MCRPath=/opt/mcr/v98"
            ],
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "/tmp",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "org.label-schema.build-date": "2023-08-01T19:26:44Z",
                "org.label-schema.description": "fMRIPrep - robust fMRI preprocessing tool",
                "org.label-schema.name": "fMRIPrep",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.url": "",
                "org.label-schema.vcs-ref": "8b741eb4",
                "org.label-schema.vcs-url": "",
                "org.label-schema.version": "23.1.4",
                "org.opencontainers.image.ref.name": "ubuntu",
                "org.opencontainers.image.version": "22.04"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 16364498336,
        "VirtualSize": 16364498336,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/11c892220b011c38828546db27515ff14c1ea8aa5eb69b44d3c954dac7ab45de/diff:/var/lib/docker/overlay2/8bc71de30809beb4f1ea09671dfe0032182ba03335a29ce83081597d24891405/diff:/var/lib/docker/overlay2/6c45e4cc5557fce36de7c6551c7c59cb8893fd02e56717fbb90208533bfd1f66/diff:/var/lib/docker/overlay2/5d58b722c93c7b60c524c6d6e2ce457cc0a589a06508a861bc953d5bec70cf96/diff:/var/lib/docker/overlay2/57f46dd484cfcf506b276acdea3c9506503bde4715dd2a347c55796af29abe76/diff:/var/lib/docker/overlay2/0e55e640b07e8c31ddd1b1e07a35a1e46ee2eba29817074ee551a17f28399ad9/diff:/var/lib/docker/overlay2/11e686ca8d783d48ba5a7c211ccc0ba99861fe5dcffcf8aa490a0993fcce5fb9/diff:/var/lib/docker/overlay2/62ca304fd32d9bd418dc5c52b39bd7dba83df68db32a450498daa633776e7abe/diff:/var/lib/docker/overlay2/2e5e08baf8f551db994883671110cf33db3c9d2e3c9661d001001cc50d93b88e/diff:/var/lib/docker/overlay2/edf71def31ab8cad5baded172d57500ebaac2cbbd459178a7ef4363375729aa1/diff:/var/lib/docker/overlay2/6d62266965cb7a717716d0ee6df3205f5b294ca96c756605417a147f228319b6/diff:/var/lib/docker/overlay2/2bd34ddf967bed86ca8444fa08ff14350cef739165e13cfb003ab81f08e5ef23/diff:/var/lib/docker/overlay2/4234ae8d2d25876a7c29ec59f38a99ac389ee3b08e522c9559ea103892889649/diff:/var/lib/docker/overlay2/cb99ada49a84781cfd96d56c996959da89e65cd9b5a33220eca2391b6619b831/diff:/var/lib/docker/overlay2/bd9c24b51bd37dc6a7c96384ec1e3afc706345c74f36cc74f0800d7fa1e361ff/diff:/var/lib/docker/overlay2/7cede494984efbd9b1bf3e9309efa3ecfbdbfe8808f71e80fb8e5f9e14aaf006/diff:/var/lib/docker/overlay2/ad5c73d7ec8f4941da506356594de82e83a345e690c111c54ef5c938cd70fd89/diff:/var/lib/docker/overlay2/5761e421b64a45d8b53af78c7ebc6db7a05936e13ec7ddc719b1e83cefc87300/diff:/var/lib/docker/overlay2/d040d8b557fe35cbe7fbe41d5e34c8448da38f33e8655cc1982e44a25743e2e7/diff:/var/lib/docker/overlay2/6b563acb5d3807425ecfd88bafd37e64cb71ced942a6f367da4bccdb6d38cd25/diff:/var/lib/docker/overlay2/60d6b9bc15777d7614a480e0d6dd10fb6f46ebd467d22cce3f30dd5d643e21d4/diff:/var/lib/docker/overlay2/16e447badf1e97c15ce71a506176cdac049e955886d52c744ca8d41c6f640fc1/diff:/var/lib/docker/overlay2/8abebcbacb9c78076cb36172d90e7f994317bfc5fc5f0a6f4e27bae51494b8d8/diff:/var/lib/docker/overlay2/ed466286131f9dbaf231a7c6ed17670af16702c872b7833332cb75d6eb2c4d80/diff:/var/lib/docker/overlay2/4019a26205bfa8b7e7682b309112dfcf121384678f02be2999a204faf37b3012/diff:/var/lib/docker/overlay2/30fd7ab169321cfa6f4f614b7ef62f033925b7044ffcfee3a102bbb4b2674b38/diff:/var/lib/docker/overlay2/e2e21ecc3e24d122dcfc1fc58dc76a53197aba31ea5799156a6e037da3fa7a91/diff:/var/lib/docker/overlay2/faa8084435b3c12aa8e8c4d0e24b739865639144a4f6465d0b81b75c9ddd2f59/diff:/var/lib/docker/overlay2/7daf8aa0eba8f72c4fe4c45ba77cb7e9106f4917831a189359743cbdf6302d4e/diff:/var/lib/docker/overlay2/57ba10fa996708e609302ae2f50da58e26c6f9f7d8c52e264903cde37f816588/diff",
                "MergedDir": "/var/lib/docker/overlay2/6b4e1415a945fc2b2521feb7a851cc3b981d1575e16d684579f75e77214f71f2/merged",
                "UpperDir": "/var/lib/docker/overlay2/6b4e1415a945fc2b2521feb7a851cc3b981d1575e16d684579f75e77214f71f2/diff",
                "WorkDir": "/var/lib/docker/overlay2/6b4e1415a945fc2b2521feb7a851cc3b981d1575e16d684579f75e77214f71f2/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:b93c1bd012ab8fda60f5b4f5906bf244586e0e3292d84571d3abb56472248466",
                "sha256:2327693b9a6640051fc86e81f3f942a2b771862823ae97836f2ef1eadb45f97c",
                "sha256:fd28e230895046991b681428a32b1e86f8a271ff6edb0057553c2c066cd090a9",
                "sha256:ddaf9dd95c2e28f436008f7f6a4c9868103556e7c33683c8b44f296801a5f220",
                "sha256:c4e4d509c1024d383046294e263a94dfaf3606ccf0d4e7441a72e66e01d71237",
                "sha256:75f21173b26764f1b06efd0dfc2642bc5449a0264ab8ba8c9f1c30a2079b7d22",
                "sha256:c2f63bc9ef354c711b4a29f7fee64f8b4848206a9c9281cd34a48477506a43ce",
                "sha256:70a25562231fd818298457177ff2731f32766e5cfe12b1247d691ba7bb67a4c6",
                "sha256:de4106f5bd6e4974cefeaa8617790024dd3ef4e8e4eff614b35ba4cdc2dc97b3",
                "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
                "sha256:bdebc0519abcf986ad386e4ccba8eba0da57566123d55c8ad37b7a06d9569c51",
                "sha256:64001a2fa8d2146d471dc6fe99c7aa764f3504f3c9fc7e9efe2b16d79236e3b5",
                "sha256:cf5469b890ff77515b7db3f13f4abf3489db1788c5c7df01c7460811b6f39227",
                "sha256:1ff179a0cfe39471821243b389211b890cfe6447848a8e31e1849f1265babcba",
                "sha256:32e1cd6b93f4bfd42414c8bdbf8b1718063ea9736f4bf1009cf06ee39ca86184",
                "sha256:534280a767b59a53529788d601e8448700c1f67e973733ee4c2a824dce8add7e",
                "sha256:69f6b4db5b962a54329b2b8f6cb9a24cd2b57026f036bf24a54d9efaac74dca2",
                "sha256:8c7c550b939f60e859348b4c05cca3e723eb16a0024b0835e3c68ee2c38e84e4",
                "sha256:8f7f2c0ce6a84c7d5fb4a79991b508804c77f4bbf4c318899acd097aa0a3e315",
                "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
                "sha256:eab9dccd96e703a0d780cb8584148c2a9c1e6eee81dc8c0e6d791eb6ac935f68",
                "sha256:faf8a775bb167dee022c02ff1259f0a7f95e0a23ebd969d0eef7b0ad10c3c48c",
                "sha256:ecd44a44c9a2e2f66e548bfcb05a36d4c22b869562f82ecddce146ce6a6fb339",
                "sha256:165f006f36bb178180c7522de90871254fb0ec56469e5c656bc8542fee00ddcd",
                "sha256:cd2530c4233e649ba53109f7f5a2abf6fd6db455a61807bf447b0f76e67a9cf1",
                "sha256:aed12102cfff7a216690e8321d1dc46c1310f11e2fd23c04f342804aabad94cf",
                "sha256:5e68b4e1ec86f9b6434db01e79c6a713a8851aee64b89e5991ecb93b466664a3",
                "sha256:395cd707ef8bf8915b9af890e1f7355c146e988371e7ef1d2c1143b74aaed39e",
                "sha256:da4c0d39b5858d4f97318b526f114de975105b2fb62cf14e9c77010cf833ab98",
                "sha256:b5ebac8bf9e77ee87afa17779328939de8579ec13ee00b1e77358c3f057c797a",
                "sha256:7f74df88f0d79a50c2e70d1492db4829fb67f9c4adaa5c243b7bf9773e60b157"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

Thank you for using code blocks for the docker commands, however, those are the commands that could have been understood without code blocks easier than the outputs so I edited your post to fix that. As you can probably see, your post looks shorter which can get you more answers.

If you have button, I assume you use Docker Desktop which doesn’t let you specify a command that runs in the container. The image maintainer should have document how the image can be used. I could only find a link in the short image description: http://rfmri.org/dpabi

I see no description there. At least not what i would understand so all I can tell you, how you would add a command in the terminal:

docker run cgyan/dpabi:latest whoami

where “whoami” is the command. If the image doesn’t have a default command, you need to specify one when you run a container from it.

Also never forget to check the help like

docker run --help