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

hostctl sync docker doesn’t skip containers that do not have an IP address assigned #93

Open
lenormf opened this issue Aug 27, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lenormf
Copy link

lenormf commented Aug 27, 2023

Describe the bug
A clear and concise description of what the bug is.

Running hostctl sync docker … will add an entry to the hosts file that contains <nil> for IP address of all containers that do not have one assigned.

To Reproduce
Steps to reproduce the behavior:

  1. Create a named container that does not have any network addresses assigned.
  2. Run hostctl sync docker <profile>
  3. The hosts file will contain an entry <nil> container.loc

Expected behavior
A clear and concise description of what you expected to happen.

A warning should be printed on the standard output that the named container does not have any IP addresses assigned, and no associated entry will be added to the hosts file.

Screenshots
If applicable, add screenshots to help explain your problem.

System (please complete the following information):

  • OS: Ubuntu Focal
  • Version: v20.04
@lenormf lenormf added the bug Something isn't working label Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants