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

[BUG] critical error with max length project name #11818

Open
aid219 opened this issue May 15, 2024 · 11 comments
Open

[BUG] critical error with max length project name #11818

aid219 opened this issue May 15, 2024 · 11 comments
Assignees
Labels

Comments

@aid219
Copy link

aid219 commented May 15, 2024

Description

I used the doker in conjunction with windows 10 and vs-code. I experimented with the "name:" parameter in docker-compose.yml" file, and when I entered a name there with a length of a couple thousand characters and launched - "docker-compose up -d " the image was created and the container started. But when I opened the desktop application after that, I could no longer stop the container or delete it, all my attempts were interrupted with an error of too long a name. Restarting the application and restarting the computer did not give results, as a result, I had to uninstall the docker application and install it again

Steps To Reproduce

No response

Compose Version

v2.26.1-desktop.1

Docker Environment

Client:
 Version:    26.0.0
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.13.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.26.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container. (Docker Inc.)
    Version:  0.0.27
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.23
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.6.3
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 26.0.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: 5.15.146.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 6
 Total Memory: 7.727GiB
 Name: docker-desktop
 ID: 46db15d9-f6b2-497b-8da5-28962cd4212d
 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=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

Anything else?

No response

@glours
Copy link
Contributor

glours commented May 15, 2024

Hello @aid219
Just to be sure, when you reference name you're talking about the Compose project name and not the image name, right?

@aid219
Copy link
Author

aid219 commented May 15, 2024

yes, its compose project name. For example, here is a docker-compose.yml file, but only the length of the name was much longer_

name:"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
services: 
    golang:
      build: ./
      image: im21
      container_name: golang21
      restart: always
      ports:
        - 80:7667

@aid219
Copy link
Author

aid219 commented May 15, 2024

now I tried to recreate the situation, the behavior is slightly different, now I can't do anything in the container section and I can't start a new one, last time I had access to the container section, but when I tried to stop and delete it, it gave an error

1
2

@glours
Copy link
Contributor

glours commented May 15, 2024

Can you share the result of a docker compose down? Does it work? I suspect the issue to be on Docker Desktop and not Compose. I'm currently not in condition to reproduce the issue on my side but I'll try as soon as I can

@aid219
Copy link
Author

aid219 commented May 15, 2024

yes, you're right, this is a docker desktop error, it stops from the terminal without any problems, do I need to send all the information to another branch again now, or can you somehow transfer it?

@glours
Copy link
Contributor

glours commented May 15, 2024

Thanks, I would take care of it 👍

@glours
Copy link
Contributor

glours commented May 15, 2024

@aid219 what is your Docker Desktop version? Did you use WSL2 or Hyper-V as virtual machine? Are you using Windows or Linux containers?
I can't reproduce the issue on both Windows and Macs with the latest version of Desktop 🤔

@glours glours self-assigned this May 15, 2024
@aid219
Copy link
Author

aid219 commented May 19, 2024

i use WSL2

@aid219
Copy link
Author

aid219 commented May 20, 2024

As far as I know, this is the Linux base of the container, now I have updated to the latest version of the docker - 4.30.0. And maybe you can't repeat the mistake due to the insufficient number of characters in the name, now I tried 5000,10000,20000 first and everything was fine. But after 42,000, everything breaks down. As you can see in the image, I have entered 42504 letters "z" in the project name. I will also show you my Dockerfile so that it will be easier for you to repeat
docker123
docker123_2
docker123_3

"

@aid219
Copy link
Author

aid219 commented May 20, 2024

and now I also cannot stop the container through the terminal as it turned out before, the command does not seem to do anything, as if it is executed without information output

@glours
Copy link
Contributor

glours commented May 31, 2024

Hey @aid219

Can you reproduce this with a docker run --label com.docker.compose.project=zzzzzzz... your_image you_command ?
Did you try to run docker compose down from the directory where your Compose file is located?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants