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

Feature Request: add (--pod/--kube) --name parameter #131

Open
sugoidogo opened this issue Nov 22, 2024 · 1 comment
Open

Feature Request: add (--pod/--kube) --name parameter #131

sugoidogo opened this issue Nov 22, 2024 · 1 comment

Comments

@sugoidogo
Copy link

A docker-compose file doesn't require a top-level name field, but when using a nameless file as input to podlet compose --pod, the following error message appears:

[root@digitalocean ztnet]# podlet compose --pod
Error:
   0: error converting compose file
   1: `name` is required when using `--pod`

Location:
   src/cli/compose.rs:130

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

That error message doesn't specify that name is a field in the docker compose file, which I think should also be updated for clarity, but I would also prefer if I could simply provide the name of the pod on the command line so that I could use unmodified compose files as input

@Matthieu-LAURENT39
Copy link

+1, i spent a good amount of time wondering why podlet compose --pod compose.yml wasn't working, and why adding --name to the podlet command didn't help

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

No branches or pull requests

2 participants