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

Unable to use extra_hosts #556

Open
2 tasks done
david-christ opened this issue Jun 27, 2024 · 0 comments
Open
2 tasks done

Unable to use extra_hosts #556

david-christ opened this issue Jun 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@david-christ
Copy link

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

When using extra_hosts, Dockge fails to bring up my stack. docker compose up -d still works as normal from the command line.

👟 Reproduction steps

Using the following compose.yaml, and then clicking "Start" in Dockge

services:
  myservice:
    image: foo/bar:latest
    container_name: myservice
    environment:
      - TZ=Australia/Sydney
    ports:
      - 1234:1234
    volumes:
      - /docker-data/myservice:/config
    extra_hosts:
      - host=192.168.0.4
    restart: unless-stopped

👀 Expected behavior

It starts as it would without extra_hosts

😓 Actual Behavior

Getting an error

Dockge Version

1.4.2

💻 Operating System and Arch

Debian Bookworm

🌐 Browser

Firefox 127

🐋 Docker Version

Docker 26.1.4

🟩 NodeJS Version

n/a

📝 Relevant log output

Error response from daemon: invalid IP address in add-host: ""
@david-christ david-christ added the bug Something isn't working label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant