Docker Community Forums

Share and learn in the Docker community.

Cannot start dockerfile/nginx


(Sveri) #1

Hi,

I am trying to start this dockerfile: https://registry.hub.docker.com/u/dockerfile/nginx/ with:
docker run -d -p 5000:80 dockerfile/nginx
But then I get this error:
2015/01/16 14:39:06 Error response from daemon: Cannot start container b74… (exit status 1)

docker logs b74… is empty / returns nothing. And all I can find in the logs is this:
Jan 16 14:44:02 vmbggest01 docker: [info] POST /v1.15/containers/create
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job create()
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job log(create, 887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6, dockerfile/nginx:latest)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job log(create, 887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6, dockerfile/nginx:latest) = OK (0)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job create() = OK (0)
Jan 16 14:44:02 vmbggest01 docker: [info] POST /v1.15/containers/887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6/start
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job start(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job allocate_interface(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job allocate_interface(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6) = OK (0)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job allocate_port(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a.allocate_port(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6)] Received an unexpected error during port allocation: iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 ! -i docker0 -j DNAT --to-destination 172.17.0.25:80: iptables: No chain/target/match by that name.
Jan 16 14:44:02 vmbggest01 docker: (exit status 1)
Jan 16 14:44:02 vmbggest01 docker: iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 ! -i docker0 -j DNAT --to-destination 172.17.0.25:80: iptables: No chain/target/match by that name.
Jan 16 14:44:02 vmbggest01 docker: (exit status 1)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job allocate_port(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6) = ERR (1)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job release_interface(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job release_interface(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6) = OK (0)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job release_interface(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job release_interface(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6) = OK (0)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] +job log(die, 887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6, dockerfile/nginx:latest)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job log(die, 887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6, dockerfile/nginx:latest) = OK (0)
Jan 16 14:44:02 vmbggest01 docker: Cannot start container 887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6: (exit status 1)
Jan 16 14:44:02 vmbggest01 docker: [2b19dd7a] -job start(887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6) = ERR (1)
Jan 16 14:44:02 vmbggest01 docker: [error] server.go:1207 Handler for POST /containers/{name:.*}/start returned error: Cannot start container 887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6: (exit status 1)
Jan 16 14:44:02 vmbggest01 docker: [error] server.go:110 HTTP Error: statusCode=500 Cannot start container 887bb6909ca73be339a30e9207b5791bf91d85bbf075673acc849e95672702f6: (exit status 1)

Docker version is 1.3.2 both client and server on redhat 4.8.2 amd64.

Any ideas what is going on here?

Thanks,
Sven


(Sven Dowideit) #2

I would suggest using the official nginx image - not the dockerfile one.


(Sven Dowideit) #3

oh. and no, Docker does not run on Redhat 4.x!