Tôi hơi bối rối về trạng thái của vùng chứa docker, đặc biệt là với trạng thái là CREATED.Vùng chứa CREATED có ý nghĩa gì trong docker?
Tôi biết rằng khi container được chạy nhà nước nó cho thấy như sau:
[email protected]:~/RAGHU/DOCKER# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1261afc2acc1 302fa07d8117 "/bin/bash" 43 minutes ago Up 43 minutes optimistic_thompson
Và nếu container ngừng, nó cho thấy như sau:
[email protected]:~/RAGHU/DOCKER# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
935f902efac7 302fa07d8117 "/bin/bash" 44 minutes ago Exited (0) 44 minutes ago competent_golick
5eb1c2525e2e 302fa07d8117 "/bin/bash" 44 minutes ago Exited (0) 44 minutes ago friendly_saha
nhầm lẫn của tôi là trong trạng thái docker hiển thị trạng thái của vùng chứa như CREATED:
[email protected]:~/RAGHU/DOCKER# docker ps -a | grep -i created
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
01c63f92586b jenkins "/bin/tini -- /usr..." 5 weeks ago Created gloomy_jones
Vui lòng tham khảo link: https://docs.docker.com/engine/reference/commandline/create/ – shizhz