Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

WIP RFC: docker-daemon ImageTransport - #79

Closed
mtrmac wants to merge 1 commit into
containers:masterfrom
mtrmac:docker-daemon
Closed

mtrmac wants to merge 1 commit into
containers:masterfrom
mtrmac:docker-daemon

Conversation

@mtrmac

@mtrmac mtrmac commented Sep 8, 2016

Copy link
Copy Markdown
Collaborator

This is unfinished, most importantly unable to handle schema1 images in either direction, but an early review would be welcome to avoid potential late surprises and to reveal any stupid bugs I have likely committed.

This adds a docker-daemon: transport, using docker/engine-api/client, creating tarballs for (docker load) on the fly, and storing (docker save) tarballs into a temporary file.

Naming of the refs is unclear as of now; something vague NamedTagged-like; see #72 .

@runcom

runcom commented Sep 8, 2016

Copy link
Copy Markdown
Member

This adds a docker-daemon: transport, using docker/engine-api/client

still using engine-api?

@mtrmac

mtrmac commented Sep 8, 2016

Copy link
Copy Markdown
Collaborator Author

Looking at docker-archive-public/docker.engine-api#379 , they seem to plan to keep the current version of that repo (but not updating) around. That is good enough for me and now, at least this week.

@runcom

runcom commented Sep 8, 2016

Copy link
Copy Markdown
Member

Looking at docker-archive-public/docker.engine-api#379 , they seem to plan to keep the current version of that repo (but not updating) around. That is good enough for me and now, at least this week.

great

@runcom

runcom commented Sep 10, 2016

Copy link
Copy Markdown
Member

@mtrmac do you think we could have dockerdaemon/* under docker/daemon/* and move the existing docker/* under docker/registry/*?

if err != nil {
return nil, fmt.Errorf("Error initializing docker engine client: %v", err)
}
inputStream, err := c.ImageSave(context.TODO(), []string{string(ref)}) // FIXME: ref should be per docker/reference.ParseIDOrReference, and we don't want NameOnly

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in case we have NameOnly, can't we just add ":latest"?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably. I really want to truly understand #72 first.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably. I really want to truly understand #72 first.

makes sense

@runcom

runcom commented Sep 10, 2016

Copy link
Copy Markdown
Member

This is unfinished, most importantly unable to handle schema1 images in either direction, but an early review would be welcome to avoid potential late surprises and to reveal any stupid bugs I have likely committed.

From a quick look at the code, I don't see anything and structure looks solid to me.

Naming wise, we really need to figure out #72 and make sure this whole thing works ok with both upstream and projectatomic/docker

@mtrmac

mtrmac commented Sep 12, 2016

Copy link
Copy Markdown
Collaborator Author

@mtrmac do you think we could have dockerdaemon/* under docker/daemon/* and move the existing docker/* under docker/registry/*?

Sure, why not. I will change this branch for docker/daemon; the move of docker/registry would be done as a separate PR. File an issue?

@runcom

runcom commented Sep 12, 2016

Copy link
Copy Markdown
Member

File an issue?

yup

@mtrmac

mtrmac commented Sep 14, 2016

Copy link
Copy Markdown
Collaborator Author

Test failures are probably due to moby/moby#26406 .

@mtrmac
mtrmac force-pushed the docker-daemon branch 5 times, most recently from fc39bea to a2468b3 Compare October 12, 2016 20:58
x
Signed-off-by: Miloslav Trmač <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants