Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with DOCKER_HOST #46

Open
RoboMagus opened this issue Sep 27, 2021 · 1 comment
Open

Does not work with DOCKER_HOST #46

RoboMagus opened this issue Sep 27, 2021 · 1 comment

Comments

@RoboMagus
Copy link

I'm using the configuration below, and it complains about docker.sock:
stat: can't stat '/var/run/docker.sock': No such file or directory

  crontab:
    image: willfarrell/crontab
    container_name: crontab
    restart: unless-stopped
    depends_on:
      - socket-proxy
    networks:
      - socket-proxy
    environment:
      - DOCKER_HOST=tcp://socket-proxy:2375
    volumes:
      - ./Volumes/crontab/logs:/var/log/crontab
      - ./Volumes/crontab/config:/opt/crontab

I suspect line 262 of docker-entrypoint, as this function will be called, regardless of whether we want to talk to the docker socket or when providing a DOCKER_HOST.

@RoboMagus
Copy link
Author

As it was an easy fix I've implemented it in my fork so I could continue using CronTab in my docker stack.
I created a PR to merge this small change back. See #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant