Skip to content

Does not work with DOCKER_HOST #46

Open

Description

@RoboMagus

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.

Activity

  1. RoboMagus commented on Sep 28, 2021

    @RoboMagus
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions