You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Branches are named `layer_<layer_index>_<layer_id>`. layer_n is a `checkout -b` from layer_n-1, so
61
65
the layer_3 branch contains the full image. You can then use it as is.
62
66
63
67
The `-g` flag brings the power of git to container images (versionning, inspecting diffs ...). But more importantly, it will allow to
64
-
push image modifications to the docker hub (see `cargo push`)
68
+
push image modifications to the docker hub (see `krgo push`)
69
+
70
+
-`-v2` flag makes `krgo` download the image using docker [v2 registry](https://github.com/docker/docker-registry/issues/612). Because everything is not yet production ready, images pulled with the `-v2` flag won't be pushable to the docker hub
If you plan to use `krgo` to push images, you will need git >= 1.8
113
+
114
+
##Notes on docker v2 registry
115
+
116
+
docker 1.5.0 pulls official images (library/*) from the v2 registry. Push are still made using the v1 registry. v2 registry brings a lot of [changes](https://github.com/docker/docker-registry/issues/612), the most noticeable ones for `krgo` are:
117
+
- images are now addressed by content (IDs are tarsum calculation)
118
+
- images are described in a manifest
119
+
- images metadata are no more stored in a json file at the root of the file system
120
+
121
+
A lot of layers in v1 where created only because the json metadata file changed. Since this file is no more distributed, some (all ?) images have "dulpicated empty layers". `krgo` clean the manifest to download only what's needed.
104
122
105
123
106
-
##Hacking on cargo
124
+
##Hacking on krgo
107
125
108
-
`cargo` directly uses some of docker source code. Docker is moving fast, and `cargo` must keep up.
126
+
`krgo` directly uses some of docker source code. Docker is moving fast, and `krgo` must keep up.
109
127
I will maintain it but if you want to contribute every pull requests / bug reports are welcome.
110
128
111
-
You don't need linux, `cargo` can run on OSX (Windows ?). Fork the repository and clone it into your
129
+
You don't need linux, `krgo` can run on OSX (Windows ?). Fork the repository and clone it into your
112
130
go workspace. Then `make vendor`, `make build` and you are ready to go. Tests can be run
113
-
with `make test`. Note that most `cargo` command must be run as sudo.
131
+
with `make test`. Note that most `krgo` command must be run as sudo.
0 commit comments