$ docker-compose -f docker-compose.yml up
Recreating root_app_1 ... done
Attaching to root_app_1
app_1 | * Serving Flask app "main" (lazy loading)
app_1 | * Environment: production
app_1 | WARNING: This is a development server. Do not use it in a production deployment.
app_1 | Use a production WSGI server instead.
app_1 | * Debug mode: on
app_1 | * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
app_1 | * Restarting with stat
app_1 | * Debugger is active!
app_1 | * Debugger PIN: 162-450-668
$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: cutejaneii
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Docker Tag:在推送到自己的repository之前,要先tag
$ docker tag myapp cutejaneii/myapp
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
cutejaneii/myapp latest 7aba68965779 40 minutes ago 696MB
myapp latest 7aba68965779 40 minutes ago 696MB