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

Running in docker with host network is not working #4398

Open
4 tasks done
javiersvg opened this issue Mar 3, 2024 · 2 comments
Open
4 tasks done

Running in docker with host network is not working #4398

javiersvg opened this issue Mar 3, 2024 · 2 comments
Labels
status/triage Issues pending maintainers triage type/bug Something isn't working

Comments

@javiersvg
Copy link

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

Running in docker with host network does not work

Expected behavior

No response

Your installation details

docker image provectuslabs/kafka-ui:latest

Steps to reproduce

Running in docker with host network fails:

docker run --rm -d -e "DYNAMIC_CONFIG_ENABLED=true" --network host -p 8081:8080 --name ui provectuslabs/kafka-ui

Screenshots

Screenshot 2024-03-03 at 5 22 54 PM

Logs

23:22:38,464 |-INFO in ch.qos.logback.classic.LoggerContext[default] - This is logback-classic version 1.4.7
23:22:38,480 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
23:22:38,480 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
23:22:38,486 |-INFO in ch.qos.logback.classic.BasicConfigurator@e15b7e8 - Setting up default configuration.
23:22:38,825 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@1b2abca6 - URL [jar:file:/kafka-ui-api.jar!/BOOT-INF/classes!/logback-spring.xml] is not of type file
23:22:38,884 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - Processing appender named [STDOUT]
23:22:38,884 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
23:22:38,901 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead.
23:22:38,901 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
23:22:38,901 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
23:22:38,901 |-INFO in ch.qos.logback.classic.model.processor.RootLoggerModelHandler - Setting level of ROOT logger to INFO
23:22:38,901 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@6392827e - Propagating INFO level on Logger[ROOT] onto the JUL framework
23:22:38,902 |-INFO in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Attaching appender named [STDOUT] to Logger[ROOT]
23:22:38,902 |-INFO in ch.qos.logback.core.model.processor.DefaultProcessor@2ed2d9cb - End of configuration.
23:22:38,902 |-INFO in org.springframework.boot.logging.logback.SpringBootJoranConfigurator@d5b810e - Registering current configuration as safe fallback point


| | | |_ | / |_ _ _ /\ _ __ __ _ | | ___ | |/ /_ _ / | |____
| |
| || | | / _ | '| / _ | '_ / / _| ' \/ -_) | ' </ _ | | / / `|
_/|
| |
| ___|
| // _| .___,_|||___| ||__,|| |__,|
|_|

2024-03-03 23:22:38,939 INFO [background-preinit] o.h.v.i.u.Version: HV000001: Hibernate Validator 8.0.0.Final
2024-03-03 23:22:38,994 WARN [main] c.p.k.u.u.DynamicConfigOperations: Dynamic config file /etc/kafkaui/dynamic_config.yaml doesnt exist or not readable
2024-03-03 23:22:39,000 INFO [main] c.p.k.u.KafkaUiApplication: Starting KafkaUiApplication using Java 17.0.6 with PID 1 (/kafka-ui-api.jar started by kafkaui in /)
2024-03-03 23:22:39,001 DEBUG [main] c.p.k.u.KafkaUiApplication: Running with Spring Boot v3.0.6, Spring v6.0.8
2024-03-03 23:22:39,001 INFO [main] c.p.k.u.KafkaUiApplication: No active profile set, falling back to 1 default profile: "default"
2024-03-03 23:22:41,017 INFO [main] o.s.b.a.e.w.EndpointLinksResolver: Exposing 2 endpoint(s) beneath base path '/actuator'
2024-03-03 23:22:41,041 INFO [main] o.s.b.a.s.r.ReactiveUserDetailsServiceAutoConfiguration:

Using generated security password: 5ed34dcc-36f1-4cb5-b4d3-fb9b571ff17d

2024-03-03 23:22:41,144 WARN [main] c.p.k.u.c.a.DisabledAuthSecurityConfig: Authentication is disabled. Access will be unrestricted.
2024-03-03 23:22:41,416 INFO [main] o.s.b.w.e.n.NettyWebServer: Netty started on port 8080
2024-03-03 23:22:41,439 INFO [main] c.p.k.u.KafkaUiApplication: Started KafkaUiApplication in 2.841 seconds (process running for 3.223)

Additional context

No response

@javiersvg javiersvg added status/triage Issues pending maintainers triage type/bug Something isn't working labels Mar 3, 2024
Copy link

github-actions bot commented Mar 3, 2024

Hello there javiersvg! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

@schnoddelbotz
Copy link

The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, ...

https://docs.docker.com/network/network-tutorial-host/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Issues pending maintainers triage type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants