Fix docker login docker ce 18.04-rc1+

* https://docs.docker.com/engine/reference/commandline/login/
pull/324/head
康怀帅 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
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ after_success:
- sudo chmod -R 777 _book
- echo "FROM nginx:1.13.8-alpine" >> 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 run -dit --rm -p 4000:80 dockerpracticecn/docker_practice
- sleep 5