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

Use multiple methods to obtain self cid #499

Merged
merged 1 commit into from
Jan 16, 2019
Merged

Conversation

buchdag
Copy link
Member

@buchdag buchdag commented Jan 16, 2019

This PR is a fix for #498.

It introduce three different methods to get the self container ID, two based on reading from different files in /proc and one using the Docker API via the container mounted socket. The three methods are tried in order and the get_self_cid() output an error if none of them gave what seems to be a correct Docker container ID (ie a 64 characters long string).

@buchdag buchdag merged commit fb2d0b2 into nginx-proxy:master Jan 16, 2019
@buchdag buchdag deleted the 498 branch May 14, 2019 15:06
@buchdag buchdag added kind/bug Issue reporting a bug kind/feature-request Issue requesting a new feature labels Oct 10, 2019
bingozb pushed a commit to bingozb/docker-letsencrypt-nginx-proxy-companion that referenced this pull request Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issue reporting a bug kind/feature-request Issue requesting a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant