Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Adding custom settings into /var/lib/boot2docker/profile #3859

Closed
nguoianphu opened this issue Nov 3, 2016 · 1 comment
Closed

Adding custom settings into /var/lib/boot2docker/profile #3859

nguoianphu opened this issue Nov 3, 2016 · 1 comment

Comments

@nguoianphu
Copy link

nguoianphu commented Nov 3, 2016

I'm using Windows machine and running Docker by Docker Toolbox. To run Elasticsearch 5.0, we have to increase the Docker host (boot2docker) virtual memory.

docker-machine ssh default
sudo vi /var/lib/boot2docker/profile
# Add this line into /var/lib/boot2docker/profile
sysctl -w vm.max_map_count=262144
# Now exit and check 
exit
docker-machine restart default

However, after restarting my Windows machine, docker-machine resets the file /var/lib/boot2docker/profile. How to keep this value persistent?

Same issue here but I don't know if it was resolved or not?

@nguoianphu
Copy link
Author

nguoianphu commented Nov 4, 2016

Solved.

docker-machine ssh default
sudo vi /var/lib/boot2docker/bootlocal.sh
# Add this line into /var/lib/boot2docker/bootlocal.sh
sysctl -w vm.max_map_count=262144
sudo chmod +x /var/lib/boot2docker/bootlocal.sh

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

No branches or pull requests

1 participant