2015-01-16 4 views
0

mongo db 이미지를 빌드하고 실행하려면이 도커 example을 따라야합니다. 그러나 이미지를 빌드 할 수 없습니다. 당신의 Dockerfile (이미 해당 폴더에있는 경우 . 사용)의 경로를 지정하고 -t를 사용하는 경우 --tag와 함께 또는없이 = 사용MongoDB Docker 이미지 작성

sudo docker build --tag himanshuy/repo 

Usage: docker build [OPTIONS] PATH | URL | - 

Build a new image from the source code at PATH 

    --force-rm=false  Always remove intermediate containers, even after unsuccessful builds 
    --no-cache=false  Do not use cache when building the image 
    --pull=false   Always attempt to pull a newer version of the image 
    -q, --quiet=false Suppress the verbose output generated by the containers 
    --rm=true   Remove intermediate containers after a successful build 
    -t, --tag=""   Repository name (and optionally a tag) to 

답변

4

시도; so : sudo docker build -t himanshuy/repo . 또는 sudo docker build --tag=himanshuy/repo .

+0

감사합니다. 이전에는'.'을 사용했지만 전에는'--tag' 옵션과 함께'='를 사용하지 않았습니다. –

관련 문제