Skip to content

Instantly share code, notes, and snippets.

@lalyos
Last active April 8, 2024 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lalyos/9725902 to your computer and use it in GitHub Desktop.
Save lalyos/9725902 to your computer and use it in GitHub Desktop.
Dockerfile failing on server, but builds locally

docker build issue

I'm in a situation where my Dockerfile builds locally, but fails on docker.io.

boot2docker

I wasn't able to reproduce the build failure on my box, usin boot2docker

> docker version

Client version: 0.9.0
Go version (client): go1.2.1
Git commit (client): 2b3fdf2
Server version: 0.9.0
Git commit (server): 2b3fdf2
Go version (server): go1.2.1
Last stable version: 0.9.0

precise64 vagrant box

Then I started a precise64 vagrant box, installed docker on it, and I was able to reproduce the same error as docker.io. But it still strange as it has the exact same docker version

vagrant@precise64:~$ sudo docker version

Client version: 0.9.0
Go version (client): go1.2.1
Git commit (client): 2b3fdf2
Server version: 0.9.0
Git commit (server): 2b3fdf2
Go version (server): go1.2.1
Last stable version: 0.9.0
FROM tianon/centos
MAINTAINER SequenceIQ
# install dev tools
RUN yum install -y openssh-server openssh-clients
# passwordless ssh
RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key
RUN ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key
RUN ssh-keygen -q -N "" -t rsa -f /root/.ssh/id_rsa
RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
RUN service sshd start && ssh -o StrictHostKeyChecking=no localhost true
RUN service sshd start && ssh -o StrictHostKeyChecking=no 127.0.0.1 true
RUN service sshd start && ssh -o StrictHostKeyChecking=no 0.0.0.0 true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment