Questions tagged [docker-layer]

A docker layer, or image layer, is a change on a docker image. Each docker image may contain a series of docker layers. Docker makes use of union file systems to combine all these layers into a single image. Union file systems allow files and directories of separate file systems, known as branches, to be transparently overlaid, forming a single coherent file system.

30 questions
0
votes
0 answers

How do I get rid of older Docker image layers and maintain only the final build layer?

Like, i am using dockerfile to build image from one baseimage i have. Contents of Dockerfile are like: step 1) FROM baseimage step 2) RUN tdnf install curl after running dockerfile, many layers have been created, so main concern is that i have to…
0
votes
1 answer

Caching the base docker image for faster pulls

I have a n docker files each corresponding to one image with layers from 1..m common to all of them. The steps specifically includes pulling the base image from a public registry, installing the bare minimum essentials for application running. Due…
Paul Schimmer
  • 161
  • 3
  • 22
0
votes
0 answers

When the docker image is pulled, can a specific file be stored in a specific layer?

When storing docker images in a file system, I want to know if I can intentionally fragment the file into an Overlay2 structure and save it separately in each layer, so I'm trying to run various docker images as containers. However, it's not easy to…
swlee
  • 3
  • 2
0
votes
0 answers

Exploring File Fragmentation in Docker Image Storage: An Investigation into Overlay2 Structure and Layered File Saving

When storing docker images in a file system, I want to know if I can intentionally fragment the file into an Overlay2 structure and save it separately in each layer, so I'm trying to run various docker images as containers. However, it's not easy to…
swlee
  • 3
  • 2
0
votes
0 answers

Docker SQL Server image getting large with each docker commit

I have a docker SQL Server image that I configure and then share with team. Each time I update the data the image size increases significantly. I start with the mcr.microsoft.com/mssql/server:2019-latest image which is about 1.6 gigs. I have to do…
Don Chambers
  • 3,798
  • 9
  • 33
  • 74
0
votes
1 answer

How to reduce the docker image size which is already committed

I know that the docker image is read-only. Therefore, deleting the file inside base-image within container does not change the size of docker. (result of docker ps -s) I wanted to reduce image size, but it's already committed, and I can't reduce…
0
votes
1 answer

Copy out file tree from Docker layers on Mac OS X

I made some local changes to a Docker container and commited them, and am now trying to replicate them when future instances are built. However, checking which specific changes were made is proving difficult. I know the layers which contain changes,…
jkmartin
  • 153
  • 1
  • 7
0
votes
2 answers

Docker failed to pull image no such file or directory

I'm creating a docker image from another image using the most simple docker file: FROM The image builds and tags successfully. However when I push it to an Azure Container Registry and pull the image I get the following error: Failed…
Giles Roberts
  • 6,407
  • 6
  • 48
  • 63
0
votes
1 answer

How to inspect a single layer within a Docker image?

I need to get more information on a single layer -- possibly by the layer id -- such as Created & Last Modified date. Is there anything similar to docker image inspect for a single layer within a Docker image?
0
votes
0 answers

Remove/Reduce size of docker layers used for installing a software

Can somebody help me? Sorry for the long question but I'm trying to describe my issue in as much detail as possible. I'm trying to have a software that installed in my docker image. In the below image, at number 2, you can see I COPY ace/ /tmp/ - …
0
votes
0 answers

Why does CMD Command generate a new layer?

All. I have one question about Docker Layer images. I think that RUN, ADD, COPY, CMD commands generate a new layer. However, I wonder why CMD command generates a new layer. For example, I understand that "ADD hoge.txt /var/tmp" requires a layer…
0
votes
0 answers

Completely delete a Ubuntu based docker container along with underlying layers of MySQL and JDK

I have created custom docker image using Ubuntu 16.04 xenial as base image, and installed JDK-1.8 and MY-SQL layer on it. Following is sample snap-shot of my Dockerfile to create image. # Use 0.9.19 as this is the last tag that uses Ubuntu 16.04…
0
votes
0 answers

Is it possible to "reset" the read/write layer of a Docker container?

While reading about containers and their layers (https://docs.docker.com/storage/storagedriver), it come to my mind the following question: Is it possible to "reset" the read/write layer of a Docker container? By "reset" I mean to delete all the…
Diogo
  • 439
  • 1
  • 4
  • 15
-1
votes
4 answers

Does the FROM command create a layer and how to check number of layers?

I am reading the official Docker docs, and it is unclear to me how many layers will be created for the below dockerfile. # syntax=docker/dockerfile:1 FROM ubuntu:18.04 LABEL org.opencontainers.image.authors="org@example.com" COPY . /app RUN make…
hagrawal7777
  • 14,103
  • 5
  • 40
  • 70
-2
votes
2 answers

How to save Docker image writable

I found out that docker image is read-only. Is there a way to save the image writable? The reason why I post this question is because I want to modify the original image. Delete or Update from the base image inside container.
1
2