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

Build image without pushing to package registry #68

Open
0xifarouk opened this issue Mar 1, 2025 · 1 comment
Open

Build image without pushing to package registry #68

0xifarouk opened this issue Mar 1, 2025 · 1 comment
Labels
kind/enhancement New feature or request

Comments

@0xifarouk
Copy link

I am trying to run the command

swift package build-container-image --from swift:slim

to run it locally without pushing it to a remote registry, but I got this error:

Missing expected argument '--repository <repository>'

Is it a must to push to a remote registry?

@euanh euanh added the kind/enhancement New feature or request label Mar 3, 2025
@euanh
Copy link
Collaborator

euanh commented Mar 3, 2025

Yes, currently the plugin cannot push an image to a local container runtime - it only supports pushing to a remote registry.

You can run a local a registry instance for testing. The following command will run a local registry listening on port 5555 (port 5000 is already in use on macOS):

docker run -d -p 5555:5000 registry:2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants