---
# System prepended metadata

title: Docker 常用指令

---

# Docker 常用指令


查images

        docker images
               

列出所有container
        
        docker ps -a  
        docker container ls -a 

列出所有container id

        docker container ls –aq
        
啟動container 

        docker run [image_name]

停止container
    
        docker container stop [container_id]
        docker container stop $(docker container ls –aq)

執行container
    
        docker start [container_id]

移除container
    
        docker container rm [container_id]

        
        
https://azole.medium.com/docker-container-%E5%9F%BA%E7%A4%8E%E5%85%A5%E9%96%80%E7%AF%87-1-3cb8876f2b14


https://matthung0807.blogspot.com/2019/12/spring-boot-create-docker-image.html

https://dotblogs.com.tw/swater111/2017/01/03/171042


https://yingclin.github.io/2018/docker-basic.html

