Comments (3)
Running against a remote daemon works now thanks to docker_registry.go, so long as your daemon.json
has an insecure-registries
entry with a <host ip>/32
set, where <host ip>
is your DOCKER_HOST=tcp://<host ip>
.
Example:
Remote host's daemon.json
(assuming it has IP 192.168.86.5
)
{
"insecure-registries": [
"192.168.86.5/32"
],
"hosts": ["<configured for remote access>"]
}
Run tests on local workstation:
export DOCKER_HOST=tcp://192.168.86.5:2375
make test
@ekcasey I think this can be closed as most of the other behavior you describe is implemented and if this setup is acceptable?
from imgutil.
This is technically a nice-to-have for the Windows work, since we could for now just run imgutil
tests on Windows workstation targetting a local Docker Desktop with Windows containers.
from imgutil.
I agree that running against a remote docker daemon should be supported.
For the remote tests, I wonder if the registry should be configurable, rather than deployed to the docker daemon as part of the test code? The repository could be supplied to the tests as an environment variable, and test images could be generated with randomized tags that are cleaned up afterwards. Credentials would need to be set prior to running the tests either in the default docker config json or in a docker config set with DOCKER_CONFIG
(I believe both of these would work with the authn.DefaultKeychain
).
Our CI scripts could deploy a registry to the daemon and set the credentials before running the tests.
from imgutil.
Related Issues (20)
- Support Saving images as archives.
- Should we limit the number of bytes in an image?
- Continue with test cleanup if previous cleanup fails
- Create an archive package in imgutil that exposes the ReadXAsTar functions
- fakes package should expose a way to create a non-existent image HOT 3
- Implement cnb.Image interface using OCI layout format
- Expose a method to parse an image reference into a local path
- Implement the SaveFile() method in the layout image interface
- Add annotation `org.opencontainers.image.ref.name` when image in OCI layout is saved
- Add annotation org.opencontainers.image.ref.name when Remote image is saved
- Expose a method to parse an image layout identifier
- Create an new interface to handle Manifest Lists
- imgutil images should be v1.Images HOT 3
- NewImage constructors should allow overriding default image properties HOT 1
- Revert docker version upgrade HOT 1
- Add codecov support HOT 1
- Update GitHub Actions workflows to use environment files
- Fallback to slow behavior if writing to daemon fails with performance optimization
- local.Rebase/ReuseLayer leak temp files HOT 2
- Add ability to override v1Config() function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgutil.