Skip to content

CONTAINERD_NAMESPACE env var should be passed to nerdctl command inside colima #1489

@Noksa

Description

@Noksa

Description

When we run this on MacOS:

colima nerdctl install

It creates such wrapper script:

╰─ cat /usr/local/bin/nerdctl                                        
#!/usr/bin/env sh

/opt/homebrew/bin/colima nerdctl --profile default -- "$@"

Unfortunately, when we run something like that:

╭─    ~                                                                                                                                                                                    ✔  08:00:20 PM  
╰─ CONTAINERD_NAMESPACE=k8s.io nerdctl images        
REPOSITORY    TAG    IMAGE ID    CREATED    PLATFORM    SIZE    BLOB SIZE

the env variable is not passed to the nerdctl command.
export doesn't help as well.

It is not related exactly to CONTAINERD_NAMESPACE, all variables which are used by nerdctl don't work this way.

Would be good to have a wrapper script which passes env variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions