Complete the command to log in to Docker Hub in a CI pipeline.
docker [1] -u $DOCKER_USERNAME -p $DOCKER_PASSWORDThe docker login command authenticates you to Docker Hub using your username and password.
Complete the command to tag a local image before pushing it.
docker tag myapp:latest [1]/myapp:latestTagging the image with your Docker Hub username prepares it for pushing to your repository.
Fix the error in the push command to upload the image to Docker Hub.
docker [1] mydockerhubuser/myapp:latestThe docker push command uploads the tagged image to the Docker Hub repository.
Fill both blanks to build and push an image in a CI script.
docker [1] -t mydockerhubuser/myapp:latest . && docker [2] mydockerhubuser/myapp:latest
First, docker build creates the image. Then, docker push uploads it to Docker Hub.
Fill all three blanks to log in, build, and push an image in a CI pipeline.
docker [1] -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && docker [2] -t $DOCKER_USERNAME/myapp:latest . && docker [3] $DOCKER_USERNAME/myapp:latest
First, docker login authenticates. Then docker build creates the image. Finally, docker push uploads it.