Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 435 Bytes

docker-dockerfile.md

File metadata and controls

33 lines (22 loc) · 435 Bytes

Dockerfile 使用

编译镜像

docker build -t <REPOSITORY:TAG> <Dockerfile Directory>

查看镜像

docker images

修改 tag

docker tag <IMAGE ID> <REPOSITORY:TAG>

Example: docker tag ca1b6b825289 registry.cn-test.aliyuncs.com/xxxxxxx:v1.0

创建容器

docker run -d -p <LOCAL PORT>:<CONTAINEr PORT> <REPOSITORY:TAG>

查看容器

docker ps -a