Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "docker create" support #6907

Closed
wants to merge 2 commits into from
Closed

Conversation

mrunalp
Copy link
Contributor

@mrunalp mrunalp commented Jul 8, 2014

This PR is for the remaining two commits for docker create. (#4548)

This exposes the already existing "create container" operation. It is
very similar to "docker run -d" except it doesn't actually start the
container, but just prepares it. It can then be manually started using
"docker start" at any point.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson alexl@redhat.com (github: alexlarsson)

This exposes the already existing "create container" operation.  It is
very similar to "docker run -d" except it doesn't actually start the
container, but just prepares it. It can then be manually started using
"docker start" at any point.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)

Conflicts:
	api/client/commands.go
	runconfig/parse.go
Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
-a, --attach=[] Attach to stdin, stdout or stderr.
-c, --cpu-shares=0 CPU shares (relative weight)
--cidfile="" Write the container ID to the file
--dns=[] Set custom dns servers
Copy link
Contributor

Choose a reason for hiding this comment

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

DNS

@mrunalp
Copy link
Contributor Author

mrunalp commented Jul 9, 2014

@jamtur01 The documentation for this command is mostly a copy of existing docs for docker run. So, the comments that you have added apply to docker run as well. Do you think it makes sense to fix the docs for both in a separate commit?

@mrunalp
Copy link
Contributor Author

mrunalp commented Jul 9, 2014

Pinging those who were looking at the original PR #4548 -- @shykes @crosbymichael @vieux @unclejack @tiborvass to please take a look.

@jamtur01
Copy link
Contributor

jamtur01 commented Jul 9, 2014

I don't mind.

@tiborvass
Copy link
Contributor

LGTM

@mrunalp
Copy link
Contributor Author

mrunalp commented Jul 9, 2014

Thanks @tiborvass That's 2 LGTMs counting @unclejack LGTM on the original PR :)
Good to merge? ;)

@tiborvass
Copy link
Contributor

@mrunalp I would like @vieux and/or @crosbymichael to review this one before merging.

@unclejack
Copy link
Contributor

The LGTM I posted on the original PR was for @shykes' branch.

@SvenDowideit
Copy link
Contributor

LGTM - though if you create the docs/man/docker.create.1.md and add a link to it on docs/man/docker.1.md it'll be even more awesome :)

@mrunalp
Copy link
Contributor Author

mrunalp commented Jul 14, 2014

@vieux @crosbymichael ping, review please.

@tiborvass tiborvass self-assigned this Jul 17, 2014
@SvenDowideit
Copy link
Contributor

@shykes : not much to discuss, I'm ok to merge, just wanted an extra pair of eyes on it for regressions (from https://botbot.me/freenode/docker-dev/msg/18199474/ )

@SvenDowideit
Copy link
Contributor

mrunalp: @tiborvass would you mind taking 6907 and carrying it to merge? - yes (from irc again)

@omeid
Copy link

omeid commented Jul 20, 2014

Another use case for this is to create volume containers using the scratch as they don't really need a filesystem since they're utilized by other containers. This means 0MB overhead volume containers, very useful when you take regular backup of volume containers.

@unclejack
Copy link
Contributor

@mrunalp Could you rebase this PR, please?

@mrunalp
Copy link
Contributor Author

mrunalp commented Jul 23, 2014

@unclejack Isn't @tiborvass carrying this one on at #7110? If not, I will be glad to rebase it.

@unclejack
Copy link
Contributor

@mrunalp That's right. I forgot about that PR, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants