2017-10-18 13 views
0

인 경우에만 표시됩니다. 고정 컨테이너를 만들고 실행합니다.Docker 이미지는 ID가

docker image ls 보여줍니다 다음 <none> 저장소와 태그와 그 이미지는 어디에서 왔는가

REPOSITORY      TAG     IMAGE ID   CREATED    SIZE 
model_cnn3_4      trained_linux   c29d652864b3  About an hour ago 3.37GB 
<none>       <none>     72fde1eacaff  4 hours ago   3.37GB 
<none>       <none>     b1c12b6f4603  21 hours ago  3.37GB 
<none>       <none>     4815f2e0588e  22 hours ago  3.37GB 
<none>       <none>     b05ec80bf7ae  24 hours ago  3.37GB 
model_cnn3_6      latest     c266efd55148  27 hours ago  3.35GB 
model_cnn3_4      latest     6c6a9e2d0e89  27 hours ago  3.35GB 
<none>       <none>     9f521f6d9829  43 hours ago  3.35GB 
tensorflow-py3-gpu-keras   latest     172a48e49bf4  43 hours ago  3.35GB 
tensorflow/tensorflow   v3      1ec7a5c316f4  4 days ago   1.67GB 
anaconda3-keras-tensorflow-gpu latest     239c5ba65421  4 days ago   4.5GB 
continuumio/anaconda3   latest     1cdde60f40a3  2 weeks ago   3.04GB 
tensorflow/tensorflow   latest-devel-gpu-py3 83d83027cb5a  2 months ago  3.99GB 
tensorflow/tensorflow   latest     1bb38d61d261  2 months ago  1.21GB 
tensorflow/tensorflow   latest-gpu-py3   ae2207c21bc1  2 months ago  3.29GB 

?

docker run <image ID> ls -la 명령을 실행하면 이러한 이미지가 얼마 전에 실행 및 중지 된 컨테이너의 스냅 샷처럼 보입니다.

하지만 정확히 무엇이 그들을 만들었습니까?

업데이트 : docker run image_tag은 새 이미지를 만들지 않습니다. 맞습니까?

+0

해당 호스트에 Docker 이미지를 구축하고 있습니까? – Sergiu

+0

예, 일부 이미지를 작성했습니다. 그 중 하나가 현재 실행 중입니다. (NN 교육) – wl2776

답변

1

이것은 단지 기본 Docker 동작입니다.

표시되는 이미지은 Docker 이미지를 만들 때 사용되는 레이어입니다.

즉 이미지를 만들 때 몇 개의 레이어가 만들어지고 저장됩니다.

자세한 내용은 blog post을 참조하십시오.

편집 :

아니, 고정 표시기 실행이/새로운 이미지를 만들지 않습니다 시작, 그냥 사용자가 지정한 이미지를 시작합니다. 그러나 이미지를 하드 드라이브에 저장할 수 없다면 Docker는 계속해서 이미지를 가져옵니다.

+1

@ wl2776 마지막 질문에 답하기 위해 내 게시물을 편집했습니다. – Sergiu

+0

새 질문을 검토해 주시기 바랍니다. https://stackoverflow.com/q/46811493/704329 – wl2776