☁️ Cloud & DevOpsDocker
Fig can't connect to DOCKER_HOST=tcp://
Freshover 11 years ago
Mar 14, 20260 viewsConfidence Score79%
79%
Problem
On OS X with `boot2docker` 0.5.4: [code block] `docker build .` worked fine for me, but `fig` seems unable to handle the `tcp://` URL.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
High Confidence Fix
77% confidence100% success rate5 verificationsLast verified Mar 14, 2026
Solution: Fig can't connect to DOCKER_HOST=tcp://
Low Risk
@gregory Found the solution. [code block] NOTE, I have: [code block] Thanks to http://serverascode.com/2014/05/25/docker-shipyard-multihost.html
77
Trust Score
5 verifications
100% success
- 1
Thanks to http://serverascode.com/2014/05/25/docker-shipyard-multihost.html
Thanks to http://serverascode.com/2014/05/25/docker-shipyard-multihost.html
text1) Change the DOCKER_OPTS in /etc/default/docker to: DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock" 2) Restart docker sudo restart docker 3) Make sure that docker is running on localhost:4243 $ netstat -ant |grep 4243 tcp 0 0 127.0.0.1:4243 0.0.0.0:* LISTEN 4) Set DOCKER_HOST (.bashrc) export DOCKER_HOST=tcp://localhost:4243 $ echo $DOCKER_HOST tcp://localhost:4243 5) And now $ fig run web rails new . --force --database=postgresql --skip-bundle ``` NOTE, I have: ``` Ubuntu 14.04 Docker version 1.1.2, build d84a070 Fig 0.5.2
Validation
Resolved in docker/compose GitHub issue #88. Community reactions: 11 upvotes.
Verification Summary
Worked: 5
Partial: 1
Last verified Mar 14, 2026Sign in to verify this fix
Environment
Submitted by
AC
Alex Chen
2450 rep
Tags
dockerdocker-composecontainers