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

Starting in Docker container: Error initializing core #121

Closed
heytrav opened this issue Apr 30, 2015 · 5 comments
Closed

Starting in Docker container: Error initializing core #121

heytrav opened this issue Apr 30, 2015 · 5 comments

Comments

@heytrav
Copy link

heytrav commented Apr 30, 2015

I'm attempting to follow the tutorial using a ubuntu:trusty Docker container and am getting the following error when I try to start vault:

root@31a7d422e87f:/# vault server -dev
Error initializing core: failed to lock memory: cannot allocate memory

I'm not sure if this is due to Docker, or if there is something special about memory allocation in general in Docker that needs to be done here so vault will work.

Here is the Dockerfile

@ryanking
Copy link

#97

On Thu, Apr 30, 2015 at 4:40 PM, William Travis Holton <
notifications@github.com> wrote:

I'm attempting to follow the tutorial using a ubuntu:trusty Docker
container and am getting the following error when I try to start vault:

root@31a7d422e87f:/# vault server -dev
Error initializing core: failed to lock memory: cannot allocate memory

I'm not sure if this is due to Docker, or if there is something special
about memory allocation in general in Docker that needs to be done here so
vault will work.

Here is the Dockerfile
https://gist.github.com/heytrav/aec594be5af402e13390


Reply to this email directly or view it on GitHub
#121.

@heytrav
Copy link
Author

heytrav commented Apr 30, 2015

Thanks! Closing as a duplicate.

@heytrav heytrav closed this as completed Apr 30, 2015
@mitchellh
Copy link
Contributor

@heytrav Its not a bug, you need to give your container the MLOCK cap

@heytrav
Copy link
Author

heytrav commented May 1, 2015

I figured it would be something like that. I just hadn't run across this in Docker before and wasn't sure.

@heytrav
Copy link
Author

heytrav commented May 1, 2015

I added --cap-add IPC_LOCK as in the other #59 and it worked.

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

No branches or pull requests

3 participants