Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Conversation

@mohitsoni
Copy link
Contributor

This pull request enhances boot2docker init by allowing user to pass --cpus to configure the number of cpus allocated to boot2docker-vm during vm creation.

@mohitsoni
Copy link
Contributor Author

@SvenDowideit @steeve If this looks good, can we please merge this one ? Also, I would recommend having a similar feature in docker-compose.

config.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this default to runtime.NumCPU()?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, cpus in the help text should probably be CPUs instead.

@mohitsoni
Copy link
Contributor Author

Okay, I have addressed your comments.

@tianon
Copy link
Contributor

tianon commented Feb 23, 2015

LGTM

cc @gmlewis @Moghedrin

tianon added a commit that referenced this pull request Feb 24, 2015
Fixes #209: CLI option for number of CPUs when creating a new boot2docker VM
@tianon tianon merged commit 0a3a250 into boot2docker:master Feb 24, 2015
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.

3 participants