diff options
author | varac <varacanero@zeromail.org> | 2016-12-22 19:57:28 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-12-22 19:57:28 +0100 |
commit | cfbc388561233fab30ba50239a0da2cd033e9b80 (patch) | |
tree | 04965979ccf0e65947712c0752547adc6ace9a15 /docker | |
parent | 71bfc3e95d9f138e0d4d49dc4a7bd97bc6505d47 (diff) |
Update README
Diffstat (limited to 'docker')
-rw-r--r-- | docker/README.md | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/docker/README.md b/docker/README.md index 4272776..c54143e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,14 +1,20 @@ -# Build +# Build new image As an example we build a new version (2.2.0) of the leapcode/ruby image: - cd ruby - docker build -t leapcode/ruby:2.2.0 . +## Find latest version -# Push images +I.e. look at the tags at https://hub.docker.com/r/leapcode/ruby/tags/ + + VERSION='2.2.0' + IMAGE='ruby' + cd $IMAGE + docker build -t leapcode/${IMAGE}:${VERSION} . + +## Push images docker logout docker login -u leapcode - docker push leapcode/ruby:2.2.0 - docker tag leapcode/ruby:2.2.0 leapcode/ruby:latest - docker push leapcode/ruby:latest + docker push leapcode/${IMAGE}:${VERSION} + docker tag leapcode/${IMAGE}:${VERSION} leapcode/${IMAGE}:latest + docker push leapcode/${IMAGE}:latest |