Skip to content

Instantly share code, notes, and snippets.

@ovidijusr
Last active February 20, 2018 08:12
Show Gist options
  • Save ovidijusr/da90fddd28964b6998d0417919276b0f to your computer and use it in GitHub Desktop.
Save ovidijusr/da90fddd28964b6998d0417919276b0f to your computer and use it in GitHub Desktop.

Docker configuration for mac

Docker on mac does work without any modification but it does really slowly (because it uses virutal disk drive rather than physical one on linux)

Make docker fast again (docker-sync)

  1. Install docker-sync: http://docker-sync.io/
  2. If you are the first one that uses docker-sync on your project, you need to configure docker-compose.yml file
  • Change every volume root to docker-sync. For example: - ./:/var/www/html:cached to - docker-sync:/var/www/html
  1. Start the docker sync Before starting docker containers with docker-sync start
  2. Start your docker containers as normal for example docker-composer start
  3. Have fun with 2-10x boost of speed in docker containers :)

Daily routine

Next time you want to use docker use command in 3 and 4 steps.

Problems with docker-sync:

Sometimes when computer goes to sleep, docker-sync may stop updating files resulting in file caching. Best solution would be to restart your computer and start it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment