helderco / docker-gen Goto Github PK
View Code? Open in Web Editor NEWdocker-gen with support for dynamic container names
License: MIT License
docker-gen with support for dynamic container names
License: MIT License
When using TCP docker endpoint instead of UNIX socket one, docker-label-sighup
still adds --unix-socket
option to curl
's commandline.
Execution log of docker-label-sighup
:
bash-5.1# printenv DOCKER_HOST
tcp://docker-proxy:2375
bash-5.1# bash -x /usr/bin/docker-label-sighup com.example.nginx_proxy
++ docker_api /containers/json GET 'filters={"label": ["com.example.nginx_proxy"]}'++ jq
++ local host
++ local path=/containers/json
++ local method=GET
++ local 'data=filters={"label": ["com.example.nginx_proxy"]}'
++ curl_opts=('-s')
++ local curl_opts
++ '[' GET = POST ']'
++ '[' -n 'filters={"label": ["com.example.nginx_proxy"]}' ']'
++ curl_opts+=(--get)
++ curl_opts+=(--data-urlencode "$data")
++ '[' -z tcp://docker-proxy:2375 ']'
++ '[' -n tcp://docker-proxy:2375 ']'
++ curl_opts+=(--unix-socket ${DOCKER_HOST#unix://})
++ host=http://localhost
-r ++ curl -s --get --data-urlencode 'filters={"label": ["com.example.nginx_proxy"]}' --unix-socket tcp://docker-proxy:2375 http://localhost/containers/json
'[.[] | .Id] | join(" ")'
+ containers=
+ '[' -z '' ']'
+ echo 'Error: can'\''t get containers for label '\''com.example.nginx_proxy'\'''
Error: can't get containers for label 'com.example.nginx_proxy'
+ exit 1
I believe the issue was introduced in 7c9a946.
Hi,
I noticed the dockerhub registry entry is now pretty stale, missing the subsequent upstream releases at nginxproxy/docker-gen
.
From what I see, the current Dockerfile would only need to change the base image to nginxproxy/docker-gen
(the upstream project has since been transferred)
Is this project still usable/used, or would you recommend against it?
If it shouldn't be used, do you have any alternative solution you know of?
Thanks!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.