GithubHelp home page GithubHelp logo

Comments (3)

micahyoung avatar micahyoung commented on July 17, 2024 1

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.

micahyoung avatar micahyoung commented on July 17, 2024

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.

ekcasey avatar ekcasey commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.