Skip to content

Instantly share code, notes, and snippets.

@akarzim
Created April 12, 2019 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akarzim/738b38983e466bf60571d85538c0d328 to your computer and use it in GitHub Desktop.
Save akarzim/738b38983e466bf60571d85538c0d328 to your computer and use it in GitHub Desktop.
function dkmee {
# Restart manually NFS (why NFS v3?) due to a bug on docker-machine start
docker-machine ssh local -t sudo mount -v -t nfs -o nfsvers=3 $(docker-machine ip):/Users /Users/
# Set config for ES
docker-machine ssh local -t sudo sysctl -w vm.max_map_count=362144
# Update iptables to access container from localhost without expose host port
# https://docs.docker.com/v17.09/engine/userguide/networking/default_network/container-communication/#container-communication-between-hosts
docker-machine ssh local -t sudo iptables -P FORWARD ACCEPT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment