https://github.com/opspec-pkgs/docker.build.localimage
build docker image that stores on host machines docker image store
https://github.com/opspec-pkgs/docker.build.localimage
Last synced: 5 months ago
JSON representation
build docker image that stores on host machines docker image store
- Host: GitHub
- URL: https://github.com/opspec-pkgs/docker.build.localimage
- Owner: opspec-pkgs
- Created: 2019-01-07T19:44:33.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T15:41:51.000Z (over 1 year ago)
- Last Synced: 2026-01-17T02:05:25.902Z (5 months ago)
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://github.com/opspec-pkgs/docker.build.localimage/actions/workflows/build.yml)
# Problem statement
Build a docker image in your host machines docker image store. Once a successful run of this op completes, you should see your new container created on the host machine when you run `docker images`.
Example usage:
```yml
op:
ref: github.com/opspec-pkgs/docker.build.localimage#1.2.0
inputs:
imageName: my-image
dockerfile: $(/Dockerfile)
dockerfileStage: my-stage-name
dockerSocket:
dockerConfig:
auths:
"https://index.docker.io/v1/":
auth: dXNlcm5hbWU6cGFzc3dvcmQK
```
```yml
op:
ref: github.com/opspec-pkgs/docker.build.localimage#1.2.0
inputs:
imageName: my-image
dockerfile: $(/Dockerfile)
dockerfileStage: my-stage-name
dockerSocket:
dockerConfig: $(HOME/.docker/config.json)
```
# Example usage
## Visualize
```shell
opctl ui github.com/opspec-pkgs/docker.build.localimage#1.2.0
```
## Run
```
opctl run github.com/opspec-pkgs/docker.build.localimage#1.2.0
```
## Compose
```yaml
op:
ref: github.com/opspec-pkgs/docker.build.localimage#1.2.0
inputs:
dockerSocket: # 👈 required; provide a value
dockerfileStage: # 👈 required; provide a value
imageName: # 👈 required; provide a value
## uncomment to override defaults
# dockerConfig: [object Object]
# dockerfile: .
```
# Support
join us on
[](https://join.slack.com/t/opctl/shared_invite/zt-51zodvjn-Ul_UXfkhqYLWZPQTvNPp5w)
or
[open an issue](https://github.com/opspec-pkgs/docker.build.localimage/issues)
# Releases
releases are versioned according to
[](http://semver.org/spec/v2.0.0.html)
and [tagged](https://git-scm.com/book/en/v2/Git-Basics-Tagging); see
[CHANGELOG.md](CHANGELOG.md) for release notes
# Contributing
see
[project/CONTRIBUTING.md](https://github.com/opspec-pkgs/project/blob/main/CONTRIBUTING.md)