When I run the container with the following command, it works fine.
nerdctl run --log-opt=max-size=100m --log-opt=max-file=5 -d nginx
But I can't specify the --log-opt option when I need to start multiple containers with the nerdctl compose command.
nerdctl compose --log-opt=max-size=100m --log-opt=max-file=5 -f docker-compose.yaml up -d
The error message is as follows: FATA[0000] unknown flag: --log-opt
Is it possible to add options such as log-opt.max-size log-opt.max-file to the nerdctl.toml configuration file so that nerdctl's logging management can take effect globally, avoiding the need to specify parameters on the command line each time?
Describe the solution you'd like
Is it possible to add options such as log-opt.max-size log-opt.max-file to the nerdctl.toml configuration file so that nerdctl's logging management can take effect globally, avoiding the need to specify parameters on the command line each time?
What is the problem you're trying to solve
When I run the container with the following command, it works fine.
nerdctl run --log-opt=max-size=100m --log-opt=max-file=5 -d nginx
But I can't specify the --log-opt option when I need to start multiple containers with the nerdctl compose command.
nerdctl compose --log-opt=max-size=100m --log-opt=max-file=5 -f docker-compose.yaml up -d
The error message is as follows:
FATA[0000] unknown flag: --log-opt
Is it possible to add options such as log-opt.max-size log-opt.max-file to the nerdctl.toml configuration file so that nerdctl's logging management can take effect globally, avoiding the need to specify parameters on the command line each time?
Describe the solution you'd like
Is it possible to add options such as log-opt.max-size log-opt.max-file to the nerdctl.toml configuration file so that nerdctl's logging management can take effect globally, avoiding the need to specify parameters on the command line each time?
Additional context
No response