• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

287
Views
How to set the DOCKER_HOST env variable on a MAC

I am trying to run a program on Mac that needs a docker daemon access to run. For this I set the DOCKER_HOST env variable that the program can use in the following way

setenv DOCKER_HOST "tcp://<ip-of-docker-daemon-host>:2375"

But the program detects it as an http address. I also tried the following

setenv DOCKER_HOST "http://<ip-of-docker-daemon-host>:2375"
setenv DOCKER_HOST tcp://<ip-of-docker-daemon-host>:2375

But still get the same error. I also restarted the docker daemon making sure it it making itself available on port 2375 as follows

sudo docker -H 0.0.0.0:2375 -d &

I am on Mac OX Capitan 10.11.5

over 3 years ago · Santiago Trujillo
1 answers
Answer question

0

maybe unix socket approach will help

docker run -ti -v /var/run/docker.sock:/var/run/docker.sock centos bash

?

over 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error