From c9d2904e4222befcec7b43d99a85b957dc0930f0 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 4 Feb 2016 18:19:49 -0800 Subject: [PATCH] docker: Fix docker build. --- Docker.md | 4 ++-- Dockerfile | 1 + Makefile | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Docker.md b/Docker.md index 48caa5b30..bc1ba4465 100644 --- a/Docker.md +++ b/Docker.md @@ -9,7 +9,7 @@ sudo apt-get install Docker.io ### Generating `minio configs` for the first time. ```bash -docker run -p 9000:9000 minio/minio:latest +docker run -p 9000:9001 minio/minio:latest ``` ### Persist `minio configs`. @@ -28,5 +28,5 @@ docker create -v /export --name minio-export minio/my-minio /bin/true You can then use the `--volumes-from` flag to mount the `/export` volume in another container. ```bash -docker run -p 9000:9000 --volumes-from minio-export --name minio1 minio/my-minio +docker run -p 9000:9001 --volumes-from minio-export --name minio1 minio/my-minio ``` diff --git a/Dockerfile b/Dockerfile index 3fade6c49..6d015f364 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,5 +4,6 @@ ENV DOCKERIMAGE 1 ADD minio.dockerimage /minio ADD export /export EXPOSE 9000 +EXPOSE 9001 ENTRYPOINT ["/minio"] CMD ["server", "/export"] diff --git a/Makefile b/Makefile index 0cb7702cb..9944b94b8 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,7 @@ pkg-remove: install: gomake-all -dockerimage: checkdocker verifiers +dockerimage: checkdocker verifiers $(UI_ASSETS) @echo "Building docker image:" minio:$(TAG) @GO15VENDOREXPERIMENT=1 go build --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage @mkdir -p export