mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-28 01:08:53 +00:00
Fix docker login docker ce 18.04-rc1+
* https://docs.docker.com/engine/reference/commandline/login/
This commit is contained in:
parent
107b14d6bb
commit
5cfe40a504
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user