Skip to content

Instantly share code, notes, and snippets.

@wrabbit-revisited
Created March 16, 2015 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wrabbit-revisited/1d70d0f1805be1848c08 to your computer and use it in GitHub Desktop.
Save wrabbit-revisited/1d70d0f1805be1848c08 to your computer and use it in GitHub Desktop.
docker /var/run/docker.sock issue
#!/bin/bash
if [ -e "/var/run/docker.sock" ];
then
echo "docker.sock found"
else
echo "docker.sock not found"
fi
sudo docker build -t "testdockersock" .
FROM golang:1.4
MAINTAINER dja
# Install Docker binary
RUN wget -nv https://get.docker.com/builds/Linux/x86_64/docker-1.3.3 -O /usr/bin/docker && \
chmod +x /usr/bin/docker
VOLUME /src
WORKDIR /src
COPY build.sh /
ENTRYPOINT ["/build.sh"]
sudo docker run --rm --privileged -v `pwd`:/src -v /var/run/docker.sock:/var/run/docker.sock testdockersock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment