Skip to content

[Feature]: Support local Docker images #311

@marcindulak

Description

@marcindulak

What feature would you like?

I would like to be able to use locally built Docker images in container-use.

I've tried this (and some other variations):

docker image pull nginx

Using default tag: latest
latest: Pulling from library/nginx
Digest: sha256:d5f28ef21aabddd098f3dbc21fe5b7a7d7a184720bc07da0b6c9b9820e97f25e
Status: Image is up to date for nginx:latest
docker.io/library/nginx:latest
docker tag nginx nginx-local
cu --version
container-use version 0.4.2 (89ebe77)
container-use config base-image set nginx-local:latest
container-use config show

Base Image:             nginx-local:latest
Workdir:                /workdir
Setup Commands:         (none)
Install Commands:       (none)
Environment Variables:  (none)
Secrets:                (none)
claude
> Read README.md

Output:

  ⎿  Error: failed to create environment: failed to resolve image 
     "docker.io/library/nginx-local:latest" (platform: "linux/amd64"): failed to resolve source 
     metadata for docker.io/library/nginx-local:latest: pull access denied, repository does not exist 
     or may require authorization: server message: insufficient_scope: authorization failed

Why would this be useful?

To avoid pushing (and pulling) large images to a cloud registry, or running a local Docker registry on the development machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions