Skip to content

Add lxc-conf flag to allow custom lxc options - #1560

Merged
crosbymichael merged 1 commit into
masterfrom
439-allow-lxc-args
Aug 22, 2013
Merged

crosbymichael merged 1 commit into
masterfrom
439-allow-lxc-args

Conversation

@crosbymichael

Copy link
Copy Markdown
Contributor

This PR allows you to do:

docker run -t -i -lxc-conf="lxc.utsname = docker" -lxc-conf="lxc.cgroup.cpuset.cpus = 0,1" ubuntu /bin/bash

Closes #439

@crosbymichael

Copy link
Copy Markdown
Contributor Author

ping @shykes @creack @vieux

Comment thread utils.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/exits/exists/

@griff

griff commented Aug 16, 2013

Copy link
Copy Markdown
Contributor

With the caveat that I know very little about lxc: Why require that the names be only used once? The normal lxc template repeats a number of option names so doesn't the unique names requirement preclude adding some options?

@crosbymichael

Copy link
Copy Markdown
Contributor Author

Yes, your correct, I'll make the change.

Michael Crosby

On Aug 15, 2013, at 5:09 PM, Brian Olsen [email protected] wrote:

With the caveat that I know very little about lxc: Why require that the names be only used once? The normal lxc template repeats a number of option names so doesn't the unique names requirement preclude adding some options?

—
Reply to this email directly or view it on GitHub.

@crosbymichael

Copy link
Copy Markdown
Contributor Author

@griff Updated, please review again.

@griff

griff commented Aug 16, 2013

Copy link
Copy Markdown
Contributor

LGTM

@shykes

shykes commented Aug 21, 2013

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@creack

creack commented Aug 21, 2013

Copy link
Copy Markdown
Contributor

LGTM

@vieux

vieux commented Aug 22, 2013

Copy link
Copy Markdown
Contributor

@crosbymichael could you rebase please ?

crosbymichael added a commit that referenced this pull request Aug 22, 2013
Add lxc-conf flag to allow custom lxc options
@crosbymichael
crosbymichael merged commit a3510c9 into master Aug 22, 2013
@crosbymichael
crosbymichael deleted the 439-allow-lxc-args branch August 22, 2013 16:34
thaJeztah pushed a commit to wanghuaiqing2010/moby that referenced this pull request May 8, 2026
Allow spaces in network names
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.

modify lxc_template via JSON arguments

6 participants