From c22eb6d2c5cfd7cb34df83fcb0d9b12b1bbfe795 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 28 Nov 2015 12:10:13 -0800 Subject: [PATCH] makefile: Fix docker image --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b97765a2e..dacea5c7d 100644 --- a/Makefile +++ b/Makefile @@ -70,10 +70,12 @@ pkg-remove: install: gomake-all dockerimage: install + @echo "Checking if docker is installed." + @if [ ! -e /usr/bin/docker ]; then echo "Docker not installed, cannot build docker image. Please install 'sudo apt-get install docker.io'" && exit 1; fi @echo "Building docker image:" minio:$(TAG) @GO15VENDOREXPERIMENT=1 go build --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage @mkdir -p export - @docker build --rm --tag=minio:$(TAG) . + @sudo docker build --rm --tag=minio/minio:$(TAG) . @rmdir export @rm minio.dockerimage