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

feat: accept docker daemon host via flag #171

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

developer-guy
Copy link
Contributor

Fixes #170

Signed-off-by: Batuhan Apaydın [email protected]
Co-authored-by: Furkan Türkal [email protected]

Fixes goodwithtech#170

Signed-off-by: Batuhan Apaydın <[email protected]>
Co-authored-by: Furkan Türkal <[email protected]>
Signed-off-by: Batuhan Apaydın <[email protected]>
@developer-guy
Copy link
Contributor Author

kindly ping @tomoyamachi 🙋🏻‍♂️

Signed-off-by: Batuhan Apaydın <[email protected]>
Copy link
Collaborator

@tomoyamachi tomoyamachi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments but overall it looks good to me.

if xdgRuntimeDir != "" {
dockerSockPath = fmt.Sprintf("unix://%s/docker.sock", xdgRuntimeDir)
} else {
dockerSockPath = "unix:///var/run/docker.sock"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set an empty string if XDG_RUNTIME_DIR is not set. So, this line looks unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but having it in a variable can help to understand what is going to be the default value of the Docker daemon's socket path, WDYT?

@tomoyamachi tomoyamachi merged commit ed3312a into goodwithtech:master Feb 16, 2022
@tomoyamachi
Copy link
Collaborator

@developer-guy Thank you for your contribution!

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.

Support of Docker TCP port to scan local cache images on host machine
2 participants