Fix docker login docker ce 18.04-rc1+

* https://docs.docker.com/engine/reference/commandline/login/
This commit is contained in:
康怀帅 2018-03-30 10:04:01 +08:00 committed by GitHub
parent 107b14d6bb
commit 5cfe40a504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ after_success:
- sudo chmod -R 777 _book - sudo chmod -R 777 _book
- echo "FROM nginx:1.13.8-alpine" >> Dockerfile - echo "FROM nginx:1.13.8-alpine" >> Dockerfile
- echo "COPY _book /usr/share/nginx/html" >> Dockerfile - echo "COPY _book /usr/share/nginx/html" >> Dockerfile
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t dockerpracticecn/docker_practice . - docker build -t dockerpracticecn/docker_practice .
- docker run -dit --rm -p 4000:80 dockerpracticecn/docker_practice - docker run -dit --rm -p 4000:80 dockerpracticecn/docker_practice
- sleep 5 - sleep 5