Docker run centos6 command fails - docker

Docker run centos6 command fails with error :-
docker run docker.io/treasureboat/centos6
"docker: Error response from daemon: No command specified"

As mentioned in the comments, this image doesn't set a CMD, so you need to specify something for docker to execute:
docker run docker.io/treasureboat/centos6 /bin/bash

Related

"exec format error" error running Docker container

I'm not able to run the docker container which I created.
I am using this command For manylinux2010
docker pull tensorflow/tensorflow:custom-op-gpu-ubuntu16
For GPU, use nvidia-docker
docker run --runtime=nvidia --privileged -it -v ${PWD}:/working_dir -w /working_dir tensorflow/tensorflow:custom-op-gpu-ubuntu16
I got this error
standard_init_linux.go:190: exec user process caused "exec format error"
I want to build pip inside the docker container.This is the link https://github.com/tensorflow/custom-op
If anyone can help ?

docker run -> command not found?

I previously create an image with the command
docker build -t test .
but when I tried to run it with this command in the console
docker run -p 8080:9552 test
I get this error
docker run -p: command not found
any clue?

Cannot run FreeBSD terminal in docker container

I am using a FreeBSD image from dockerhub. After pulling the image, I need to run a container with a terminal to test some commands inside the container.
I am trying this command:
sudo docker run --rm -it auchida/freebsd ./bin/bash
And I get the error:
docker: Error response from daemon: OCI runtime create failed:
container_linux.go:348: starting container process caused "exec:
\"./bin/bash\": stat ./bin/bash: no such file or directory": unknown
Could anyone help me ?
There is no bash binary embedded in the image, located at /bin/bash or everywhere else : you can check it by looking at base.txz contents.
You can use /bin/sh instead (the default shell, take a look at the Dockerfile) :
sudo docker run --rm -it auchida/freebsd /bin/sh
(/bin/sh is optional in the previous command, since it is the default CMD).
If you really want bash, you must install it.
Note also that you must be on a FreeBSD host to be able to run a container with this image.

Pull access denied in docker run command

I have the below code to build an image
docker build -t provisioner-builder:latest -f images/provisioner/Dockerfile.builder .
Right after this build command I have this line
docker run provisioner-builder:latest /bin/true
The docker run command always throws this error in jenkins
06:23:44 Successfully tagged provisioner-builder:latest
06:23:44 docker run provisioner-builder:latest /bin/true
06:23:45 docker: Error response from daemon: Error response from daemon: pull access denied for provisioner-builder, repository does not exist or may require 'docker login'.
06:23:45 See 'docker run --help'.
SO out of 15 runs in jenkins, the above step fails at-least 10-11 times. I get lucky very rarely. I am not trying to pull image as the image is already present in local [I tested by doing a docker images right after the build command and the image was locally present].
I dont understand why this command fails most of the times.

centos6.6 in Dockerfile gives error

I am trying to use centos6.6 in Dockerfile,
I tried following both lines one by one in my Dockerfile:
FROM centos:centos6.6
FROM centos:6.6
But getting this error while running docker:
root#onl-dev:/distros/trial# docker run -it trial
docker: Error response from daemon: No command specified.
See 'docker run --help'.
Can someone suggest me if I am missing anything here?
The error seems pretty clear: you haven't specified a command to run, either in your Dockerfile or on the command line. You could try:
docker run -it trial bash
...if you want a shell. Or you could add to your Dockerfile:
CMD ["bash"]
...and now your image would run this by default if no command is provided on the command line.

Resources