This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
--batch
ongpg --verify
(Fix suggested "gpg" usage to stop relying on deprecated and insecure behavior docker-library/official-images#1420 (comment))exec
so that the shell does not stay residentdumb-init
sh
process was getting in the way since you were missingexec
(and the output ofconsul
while testing this change seems to confirm that:[DEBUG] Automatically reaping child processes
).Feel free to tell me where I am wrong. 😄
Also, I'd like to ask about the semi-complicated
dev
,client
,server
thing. Is this what consul users would be used to seeing when running it outside of docker? There doesn't seem to be much difference in the provided config file. Would it be easier to allow aRETRY_JOIN
space separated list to be passed in and use that to determine whether or not this is the initial bootstrap node or just tell users to run the server with something likedocker run -d consul -retry-join 'dns-name' -retry-join 'dns2-name'
One more point: for
CONSUL_BIND
why not just default to0.0.0.0
? (I'm trying to understand the use case where a user would know the interface device name ahead of time, since I am not sure how deterministic joining two docker networks is.)