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
Running nerdctl compose up
immediately exists with "no such file or directory" on -json.log file
#1071
Comments
we should merge this https://github.com/containerd/nerdctl/pull/1062/files than I will push a fix for this issue. |
This is impacting me. Thank you @fahedouch for taking care of this |
Thanks @fahedouch - much appreciated! If you need me to test your fix then please let me know and I'd be happy to help. |
@fahedouch Do you have a plan to open a PR? |
@AkihiroSuda Yes, I looked at this yesterday, I made a fix ASAP! |
Using the workaround above doesn't seem to fix it for me. I have a compose file with three containers. Two of them start as expected, but one fails with this error message and exits:
Take note that I'm running nerdctl bundled with Rancher Desktop. Using the workaround produces the same result. Two containers are running, one of them fails. |
@nsiepmann I've managed to use the workaround with mutli-container compose files, but I suspect it's highly dependent on timing (how quickly the container starts). You could try increasing the sleep to see if that helps until a fix is available, e.g. |
Fixed in nerdctl v0.21.0 |
I'm running a Gitlab CI step with image
But nothing about log files or sthing like that. |
Description
Running
nerdctl compose up
(without the-d
detach flag) immediately exits with an error that the container -json.log file does not exist.Running
nerdctl compose up -d; sleep 2; nerdctl compose logs -f
works; the containers are created and the log files exist and are tailed to stdout.This behaviour occurs with both v0.20.0 (as installed by Lima) and current master (ddad500) compiled from source.
Steps to reproduce the issue
docker-compose.yml
file as belownerdctl compose up
Describe the results you received and expected
Expected results:
Container starts and log file is tailed to stdout.
Received results:
nerdctl immediately exists, with the following output (with
-debug
flag):What version of nerdctl are you using?
Client:
Version: v0.20.0
OS/Arch: linux/arm64
Git commit: e77e05b
Server:
containerd:
Version: v1.6.4
GitCommit: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
Lima
Host information
Client:
Namespace: default
Debug Mode: false
Server:
Server Version: v1.6.4
Storage Driver: fuse-overlayfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Log: json-file
Storage: native overlayfs stargz fuse-overlayfs
Security Options:
apparmor
seccomp
Profile: default
cgroupns
rootless
Kernel Version: 5.10.0-13-arm64
Operating System: Debian GNU/Linux 11 (bullseye)
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 3.831GiB
Name: lima-default
ID: a2e0f2fe-8b65-4b55-b746-945a35e37c9f
WARNING: AppArmor profile "nerdctl-default" is not loaded.
Use 'sudo nerdctl apparmor load' if you prefer to use AppArmor with rootless mode.
This warning is negligible if you do not intend to use AppArmor.
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
The text was updated successfully, but these errors were encountered: