testcontainers / testcontainers/testcontainers-java
Socket from DOCKER_HOST not used if default socket exists.
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 1.9k
- Merge medio
- 2g 17h
- PR unite (30g)
- 9
Descrizione
I am running both docker and podman in parallel. When I try to make testcontainers to use podman by setting the DOCKER_HOST environment variable the test still connected to the default /var/run/docker.sock. I had to stop the docker service and remove the socket by sudo rm -fr /var/run/docker.sock, after that the test connected to the socked specified int the environment variable as expected.
The socket from the environment variable should be used always even if /var/run/docker.sock exists.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando la configurazione del client Docker di Testcontainers e il modo in cui DOCKER_HOST viene risolto rispetto a /var/run/docker.sock. Riproduci il problema con entrambi i socket presenti, quindi verifica che venga selezionato il socket della variabile d'ambiente e che il comportamento esistente del socket predefinito continui a essere coperto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, java
- Ambito
- devops, testing
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100