Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.22 KB

README.md

File metadata and controls

64 lines (34 loc) · 1.22 KB

Docker Simple

To list any running containers

$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

To kill a container

$ docker kill

To see if you have any containers even if they are not running.

$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mtngt/angular_docker latest ec5a8c5f01f1 2 hours ago 17MB

To clear out all the not running stuff as well $ docker system prune -a

To build a docker image $ docker build -t simple:latest .

To run the build

$ docker run -d -p 5000:5000 simple:latest

To push image to Docker Hub

Login from terminal $ docker login -u quangvublog Password:

Login Succeeded

To retag image $ docker tag simple quangvublog/my_docker_flask

To push $ docker push quangvublog/my_docker_flask

To pull $ docker pull quangvublog/my_docker_flask

Quang Vũ Blog

Địa chỉ: 432 Nguyễn Thị Minh Khai, Phường 5, Quận 3, Hồ Chí Minh

Phone: +84 977 689 733

Email: [email protected]

source: thủ thuật máy tính - Quang Vũ Blog

https://hub.docker.com/u/quangvublog