docker / desktop-linux

Bug reports for Docker Desktop for Linux
https://docs.docker.com/desktop/linux/
77 stars 5 forks source link

Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - failed to initialize logging driver: journald is not enabled on this host #68

Open nobuenhombre opened 2 years ago

nobuenhombre commented 2 years ago

Expected behavior

Container run with log-driver journald

Actual behavior

Container run failed with log-driver journald

Information

Steps to reproduce the behavior

  1. docker-compose.yaml

`version: "3.4"

x-logging: &x-logging driver: journald options: tag: "{{.Name}}"

services: db: container_name: my__db build: ./postgres image: ${IMAGE_DB} restart: always volumes:

volumes: db_volume: static_volume: `

when i start container docker desktop show me error Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - failed to initialize logging driver: journald is not enabled on this host

  1. when i change
  2. from driver: journald
  3. to driver: json-file

Container run with log-driver json-file

but i need journald

` docker system info Client: Context: desktop-linux Debug Mode: false Plugins: app: Docker App (Docker Inc., v0.9.1-beta3) buildx: Docker Buildx (Docker Inc., v0.8.2-docker) compose: Docker Compose (Docker Inc., v2.7.0) extension: Manages Docker extensions (Docker Inc., v0.2.8) sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0) scan: Docker Scan (Docker Inc., v0.17.0)

Server: Containers: 7 Running: 0 Paused: 0 Stopped: 7 Images: 33 Server Version: 20.10.17 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true userxattr: false Logging Driver: journald Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1 runc version: v1.1.2-0-ga916309 init version: de40ad0 Security Options: seccomp Profile: default cgroupns Kernel Version: 5.10.104-linuxkit Operating System: Docker Desktop OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 5.805GiB Name: docker-desktop ID: GGKS:HS6B:625C:7YQT:32WK:PKJ4:WCF3:ZY7Z:JLAX:WY22:7KDH:3IJL Docker Root Dir: /var/lib/docker Debug Mode: true File Descriptors: 64 Goroutines: 66 System Time: 2022-08-21T09:26:56.346953561Z EventsListeners: 4 HTTP Proxy: http.docker.internal:3128 HTTPS Proxy: http.docker.internal:3128 No Proxy: hubproxy.docker.internal Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: hubproxy.docker.internal:5000 127.0.0.0/8 Live Restore Enabled: false

`

docker-robott commented 1 year ago

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot[bot] commented 1 year ago

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale