Can I launch an intermediate layer of docker image?

when I extract the docker image from the repository, I see that it pulls a bunch of layers with some identifiers, but when I try to start them using docker run , it tells me that it cannot find it.

My question will be this: can I run a specific layer of the docker image, which I can see through the docker history <image_id> , as a paleontologist digging to find something interesting?

WHAT DID I SAY:

docker pull ruby
Using default tag: latest
latest: Pulling from library/ruby
693502eb7dfb: Already exists 
081cd4bfd521: Already exists 
5d2dc01312f3: Already exists 
54a5f7da9a4f: Pulling fs layer 
168cf3f33330: Pulling fs layer 
021d84fef638: Pulling fs layer 
168c3c107cd1: Waiting 
f001b782a027: Waiting

then:

docker run --rm -it 5d2dc01312f3 bash
Unable to find image '5d2dc01312f3:latest' locally

, , , , 1.2go , , , , , 1.5go, , 1.2go, , .

+4
2

, , docker >= 1.10 self build. docker history ruby <missing> , , . , , , .

+1

, , .. , , , !

:

  • : ( )
  • : ( ), .
  • : ( ) -. , docker history <image-id>

, , , , .

<missing> docker history , , , , .

- , - ( > ).

explaining-docker-image-ids

+1

Source: https://habr.com/ru/post/1671482/


All Articles