almoehi / reactive-docker Goto Github PK
View Code? Open in Web Editor NEWA fully reactive scala client for the docker remote API.
License: MIT License
A fully reactive scala client for the docker remote API.
License: MIT License
We have a private registry server run in standalone mode.
And we have image tags like "192.168.0.120:5000/test:latest" .
but the RepositoryTag class not support this format .
I fork and run the test but sbt complains with a
Could not create an instance of test.DockerUsecaseSpec
[error]
[error] java.lang.Exception: Could not instantiate class test.DockerUsecaseSpec
[error] caused by java.lang.reflect.InvocationTargetException
[error] caused by java.lang.NullPointerException
Several errors are produced by the parser for the containerState request.
Changes:
The most "breaking" change is addition of the ```label feature. I gues this will break the JSON parsers in some cases.
The build supports LABEL command. Use this to add metadata to an image. For example you could add data describing the content of an image.
LABEL "com.example.vendor"="ACME Incorporated"
New! POST /containers/(id)/attach and POST /exec/(id)/start
New! Docker client now hints potential proxies about connection hijacking using HTTP Upgrade headers.
POST /containers/create
New! You can set labels on container create describing the container.
GET /containers/json
New! The endpoint returns the labels associated with the containers (Labels).
GET /containers/(id)/json
New! This endpoint now returns the list current execs associated with the container (ExecIDs). This endpoint now returns the container labels (Config.Labels).
POST /containers/(id)/rename
New! New endpoint to rename a container id to a new name.
POST /containers/create POST /containers/(id)/start
New! (ReadonlyRootfs) can be passed in the host config to mount the container's root filesystem as read only.
GET /containers/(id)/stats
New! This endpoint returns a live stream of a container's resource usage statistics.
GET /images/json
New! This endpoint now returns the labels associated with each image (Labels).
Changes:
New! The hostConfig option now accepts the field CapAdd, which specifies a list of capabilities to add, and the field CapDrop, which specifies a list of capabilities to drop.
POST /images/create
New! The fromImage and repo parameters now supports the repo:tag format. Consequently, the tag parameter is now obsolete. Using the new format and the tag parameter at the same time will return an error.
Hi I was wondering if you are still interested in maintaining this project. I forked the repo and have introduced several fixes. My company is using this library as and underlying component of a higher level project we are planning to release soon. I would be happy to take over maintenance of the repo, if you want.
Thanks
Hey,
AFAIK, you have to attach before starting a container, otherwise you risk losing some early data.
I'm not sure, but I think this API does not support this: you cannot know when you have successfully attached, since the Future attachStream
returns never completes if the container is not running.
Changes:
New! Sockets parameter added to the /info endpoint listing all the sockets the daemon is configured to listen on.
POST /containers/(name)/start POST /containers/(name)/stop
New! start and stop will now return 304 if the container's status is not modified
POST /commit
New! Added a pause parameter (default true) to pause the container during commit
In https://github.com/almoehi/reactive-docker/blob/master/src/main/scala/com/kolor/docker/api/entities/ContainerConfiguration.scala shouldn't image
be a String
instead of an Option[String]
, since it's a required value?
Also I think volumes
should be just a Map[String, DockerVolume]
, same thing for exposedPorts
, env
and probably others.
Changes:
POST /containers/create
New! It is now possible to set a container's HostConfig when creating a container. Previously this was only available when starting a container.
Changes:
GET /version
New! This endpoint now returns Os, Arch and KernelVersion.
POST /containers/create POST /containers/(id)/start
New! You can set ulimit settings to be used within the container.
GET /info
New! This endpoint now returns SystemTime, HttpProxy,HttpsProxy and NoProxy.
GET /images/json
New! Added a RepoDigests field to include image digest information.
POST /build
New! Builds can now set resource constraints for all containers created for the build.
New! (CgroupParent) can be passed in the host config to setup container cgroups under a specific cgroup.
POST /build
New! Closing the HTTP request will now cause the build to be canceled.
Changes:
GET /info
New! info now returns the number of CPUs available on the machine (NCPU), total memory available (MemTotal), a user-friendly name describing the running Docker daemon (Name), a unique ID identifying the daemon (ID), and a list of daemon labels (Labels).
POST /containers/create
New! You can set the new container's MAC address explicitly.
New! Volumes are now initialized when the container is created.
POST /containers/(id)/copy
New! You can now copy data which is contained in a volume.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.