Cant Scroll Horizontally To See All Logs When `Wrap Lines` Off

by ADMIN 63 views

Description

As a Docker Desktop user, I was thrilled to see the introduction of the Wrap Lines toggle in the log output. However, I encountered an issue when I disabled Wrap Lines and the log lines were too long to fit on the page. Unfortunately, I was unable to scroll horizontally to see the rest of the logs. This limitation makes it challenging to view and analyze long log lines, which can be crucial for debugging and troubleshooting purposes.

Reproduce

To reproduce this issue, follow these steps:

  1. Open Docker Desktop.
  2. Start any container with logs that have long log lines.
  3. Turn off Wrap Lines in the log output.
  4. Attempt to scroll horizontally to see the entire log line.

Expected behavior

Docker Desktop should allow users to scroll horizontally to view the entire log line when it is too long to fit on the page and Wrap Lines is toggled off. This feature would enable users to easily analyze and debug long log lines, making it a valuable addition to the Docker Desktop experience.

Docker version

Here are the details of my Docker Desktop version:

Client:
 Version:           28.0.4
 API version:       1.48
 Go version:        go1.23.7
 Git commit:        b8034c0
 Built:             Tue Mar 25 15:06:09 2025
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.40.0 (187762)
 Engine:
  Version:          28.0.4
  API version:      1.48 (minimum version 1.24)
  Go version:       go1.23.7
  Git commit:       6430e49
  Built:            Tue Mar 25 15:07:18 2025
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.26
  GitCommit:        753481ec61c7c8955a23d6ff7bc8e4daed455734
 runc:
  Version:          1.2.5
  GitCommit:        v1.2.5-0-g59923ef
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker info

Here are the details of my Docker Desktop info:

Client:
 Version:    28.0.4
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  ai: Docker AI Agent - Ask Gordon (Docker Inc.)
    Version:  v1.1.3
    Path:     <redacted>/.docker/cli-plugins/docker-ai
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.22.0-desktop.1
    Path:     <redacted>/.docker/cli-plugins/docker-buildx
  cloud: Docker Cloud (Docker Inc.)
    Version:  0.2.20
    Path:     <redacted>/.docker/cli-plugins/docker-cloud
  compose: Docker Compose (Docker Inc.)
    Version: 2.34.0-desktop.1
    Path:     <redacted>/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.38
    Path:     <redacted>/.docker/cli-plugins/docker-debug
  desktop: Docker Desktop commands (Beta) (Docker Inc.)
    Version:  v0.1.6
    Path:     <redacted>/.docker/cli-plugins/docker-desktop
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     <redacted>/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.27
    Path:     <redacted>/.docker/cli-plugins/docker-extension
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     <redacted>/.docker/cli-plugins/docker-init
  model: Docker Model Runner (Docker Inc.)
    Version:  v0.1.4
    Path:     <redacted>/.docker/cli-plugins/docker-model
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     <redacted>/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.17.0
    Path:     <redacted>/.docker/cli-plugins/docker-scout
WARNING: Plugin "<redacted>/.docker/cli-plugins/docker-feedback" is not valid: failed to fetch metadata: fork/exec <redacted>/.docker/cli-plugins/docker-feedback: no such file or directory

Server:
 Containers: 9
  Running: 3
  Paused: 0
  Stopped: 6
 Images: 10
 Server Version: 28.0.4
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: json-file
 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 splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 753481ec61c7c8955a23d6ff7bc8e4daed455734
 runc version: v1.2.5-0-g59923ef
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.10.14-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 7.752GiB
 Name: docker-desktop
 ID: 96c7cea3-a3d1-499c-b3ab-345edfd9fee3
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=unix://<redacted>/Library/Containers/com.docker.docker/Data/docker-cli.sock
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Diagnostics ID

136602EB-906E-4F16-9CDD-CD35A95781D5/20250426145227

Additional Info

Q: What is the purpose of the Wrap Lines toggle in Docker Desktop?

A: The Wrap Lines toggle is designed to help users view long log lines in the Docker Desktop log output. When enabled, it wraps long lines to the next line, making it easier to read and analyze the logs.

Q: Why can't I scroll horizontally to see all logs when Wrap Lines is off?

A: Currently, when Wrap Lines is disabled, Docker Desktop does not provide a horizontal scrolling mechanism to view long log lines. This limitation makes it challenging to analyze and debug long log lines.

Q: Is there a workaround to view long log lines when Wrap Lines is off?

A: Unfortunately, there is no official workaround to view long log lines when Wrap Lines is disabled. However, users can try using external tools or editors to view and analyze the logs.

Q: Can I request a feature to add horizontal scrolling to Docker Desktop?

A: Yes, you can submit a feature request to the Docker Desktop team. They will review and consider your request for future updates.

Q: How do I submit a feature request to Docker Desktop?

A: To submit a feature request, follow these steps:

  1. Go to the Docker Desktop website and click on the "Support" tab.
  2. Click on the "Submit a request" button.
  3. Fill out the request form with your feature request.
  4. Click on the "Submit" button.

Q: Can I get help from the Docker Desktop community to resolve this issue?

A: Yes, you can reach out to the Docker Desktop community for help and support. They have a dedicated forum and support channels where you can ask questions and get assistance from other users and experts.

Q: How can I stay updated on the latest Docker Desktop features and updates?

A: To stay updated on the latest Docker Desktop features and updates, follow these steps:

  1. Subscribe to the Docker Desktop blog and newsletter.
  2. Follow Docker Desktop on social media platforms.
  3. Check the Docker Desktop website regularly for updates and announcements.

Q: Can I get in touch with the Docker Desktop team directly?

A: Yes, you can contact the Docker Desktop team directly through their support channels. They will respond to your inquiry and provide assistance with your issue.