containerd / containerd/nerdctl

nerdctl compose file map multiple ports (label key and value length (30968 bytes) greater than maximum size (4096 bytes))

Open
#4,027 3 comments 0 reactions 1 assignee Claimed by @haytok View on GitHub
enhancement expert
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### Description

### What is the problem you're trying to solve
when compose.yml file include follows code will get error:
#### compose.yaml: service part
```yaml
mozi-zlm:
image: nginx:1.27.4
ports:
- '32000-32200:32000-32200'
- '32000-32200:32000-32200/udp'
```
#### nerdctl compose up -d received

![Image](https://github.com/user-attachments/assets/b357d936-692a-4386-8004-ac0beeb5407c)

### Steps to reproduce the issue

1.
2.
3.

### Describe the results you received and expected

nerdctl compose file can map multiple ports and when compose failed can still create service

### What version of nerdctl are you using?

Client:
Version: v2.0.2
OS/Arch: linux/amd64
Git commit: https://github.com/containerd/nerdctl/commit/1220ce7ec2701d485a9b1beeea63dae3da134fb5
buildctl:
Version: v0.18.1
GitCommit: eb68885955169461d72dc2b7e6d084100fcaba86

### Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

### Host information

Client:
Namespace: default
Debug Mode: false

Server:
Server Version: v2.0.1
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Log: fluentd journald json-file none syslog
Storage: native overlayfs
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.14.0-061400rc5-generic
Operating System: Linux Mint 22.1
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 15.54GiB

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.