Skip to content

Instantly share code, notes, and snippets.

@angch
Created April 10, 2015 05:09
Show Gist options
  • Save angch/5e56e73032885822f089 to your computer and use it in GitHub Desktop.
Save angch/5e56e73032885822f089 to your computer and use it in GitHub Desktop.
Makefile for docker-compose to pull images from docker-compose.yml properly.
.PHONY: pull up start all
all: pull up
pull:
grep image docker-compose.yml | grep -v -E "^#" | awk '{print $$2}' | xargs -n1 docker pull
up:
docker-compose up -d
start:
docker-compose start -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment