Skip to content

Unique hosts and hosts from label first#10

Open
gsobczyk wants to merge 3 commits intocostela:masterfrom
gsobczyk:unique-hosts-and-hosts-from-label-first
Open

Unique hosts and hosts from label first#10
gsobczyk wants to merge 3 commits intocostela:masterfrom
gsobczyk:unique-hosts-and-hosts-from-label-first

Conversation

@gsobczyk
Copy link

  1. sometimes, when using docker-compose (with service is named like container_name), hosts are duplicated
  2. checking /etc/hosts can be not easy when you use labels for many service in docker-compose - the custom names are at the end of each line

@gsobczyk
Copy link
Author

PS. can you publish image to docker hub?
pepe hype

@costela
Copy link
Owner

costela commented Feb 26, 2023

publish image to docker hub

You mean like this one? 🤔

hosts are duplicated

Can you please provide a concrete example?

@gsobczyk
Copy link
Author

gsobczyk commented Feb 26, 2023

publish image to docker hub

You mean like this one? thinking

yes

hosts are duplicated

Can you please provide a concrete example?

sample docker-compose.yml:

services:
  reverse-proxy:
    container_name: reverse-proxy
    image: nginx

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

Successfully merging this pull request may close these issues.

2 participants