rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
6.02k stars 285 forks source link

Docker logging driver #1874

Open electriquo opened 2 years ago

electriquo commented 2 years ago

Actual Behavior

Docker has a builtin support for multiple logging drivers, which seems not supported when using Rancher Desktop.

I am running Rancher Desktop version 1.1.1 on MacOS 12.3 with dockerd and K8s disabled. Is it supported or is it a bug? Relates to #1484.

Steps to Reproduce

Given a Docker Compose file

$ docker-compose config
services:
  fluentd:
    container_name: fluend
    image: fluent/fluentd:v1.14.4-1.0
    networks:
      default: null
  nginx:
    container_name: nginx
    depends_on:
      fluentd:
        condition: service_started
    image: nginx:latest
    logging:
      driver: fluentd
      options:
        fluentd-address: fluentd:24224
        tag: nginx.access
    networks:
      default: null
networks:
  default:
    name: example_default

When spinning up an Nginx container, an error pops

$ docker-compose up -d nginx
[+] Running 2/3
 ⠿ Network example_default  Created                                                                                                   0.0s
 ⠿ Container fluend       Started                                                                                                   0.6s
 ⠿ Container nginx        Starting                                                                                                  1.3s
Error response from daemon: failed to initialize logging driver: dial tcp: lookup fluentd on 192.168.5.3:53: no such host

it seems that Fluentd is resolved to Lima DNS.

Result

Error response from daemon: failed to initialize logging driver: dial tcp: lookup fluentd on 192.168.5.3:53: no such host

Expected Behavior

No errors and container logs will be shipped to FluentD

Additional Information

The lack of Docker logging drivers support, makes the transition from Docker Desktop to Rancher Desktop problematic when utilizing the logging drivers.

Rancher Desktop Version

1.1.1

Rancher Desktop K8s Version

1.23.3

Which container runtime are you using?

moby (docker cli)

What operating system are you using?

macOS

Operating System / Build Version

MacOS Monterey 12.3

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

No response

Windows User Only

No response

ericpromislow commented 2 years ago

Probably a DNS issue. We'll look into it.

electriquo commented 2 years ago

@ericpromislow any update?

ericpromislow commented 2 years ago

No, the issue hasn't been scheduled yet. You can see our current project plan at https://github.com/rancher-sandbox/rancher-desktop/projects/1