.
( ). : (1) docker.sock
(2) docker
.
(1): @yclian, jenkins
docker
.
. sudo docker run ..
. sudo
, , Jenkins root- , .
(2) -v $(which docker):/bin/docker
. MacOS. which docker
/usr/local/bin/docker/
, , docker
. jenkins
docker run -p 8080:8080 -p 50000:50000 -v /usr/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock -v /Users/matthaeus/.jenkins_home:/var/jenkins_home -t -i jenkins
, docker engine
, , (docker exec -t -i container-id /bin/bash
apt-get install docker-engine
), Dockerfile
.
, sudo docker build -t my-image .
, -.