Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker tag ignores variables #7872

Closed
jeremyeder opened this issue Sep 3, 2014 · 2 comments
Closed

docker tag ignores variables #7872

jeremyeder opened this issue Sep 3, 2014 · 2 comments

Comments

@jeremyeder
Copy link

I'm trying to build, tag and push many images to an internal registry.

IMAGES="image1 image2 image3"
REGISTRY=myregistry.domain.local
for i in $IMAGES
        do
                docker build -t $i - < Dockerfile_$i
                docker tag $i $REGISTRY/$i
                docker push $REGISTRY/$i

docker tag sees $REGISTRY as literal rather than the variable contents which are a hostname.

Possible solution in #5603 but I think this is it's own bug, or at least unexpected behavior.

http://docs.docker.com/userguide/dockerimages/#setting-tags-on-an-image

@jeremyeder
Copy link
Author

@rhatdan

@gesellix
Copy link
Contributor

gesellix commented Sep 3, 2014

your example seems to work for me as expected - using bash. which shell are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants