Questions tagged [container-image]

Container images are packages used to create Docker containers.

Container images are the basis of Docker or OCI containers. They usually reside in container image registries. When a container is built, the requested base image is downloaded from the corresponding registry if not available already locally.

More information on building container images can be found on the Docker documentation page.

53 questions
49
votes
2 answers

What is the difference between devel and runtime tag for a Docker container?

For Pytorch and Tensorflow, there are tags which differentiate devel and runtime, I am not quite sure what are the difference between these two, can someone help me understand that better?
BLP
  • 591
  • 1
  • 4
  • 3
16
votes
3 answers

docker ps - show image ID instead of name

I display running containers using docker ps command. There is an IMAGE column that shows name of the image that each container was created from. However in the meantime (while containers were running) I have rebuilt some images. The new images have…
k13i
  • 4,011
  • 3
  • 35
  • 63
13
votes
1 answer

How to use docker-compose yml file for production?

I have a docker application on my localhost which works fine. I am running PHP, Nginx and Mariadb on it. The docker-compose.yml file which containes this code: version: '3' services: db: build: context: ./mariadb volumes: …
anon
8
votes
1 answer

Running docker scan returns an error on ubuntu 20.04

When I tried scanning local images, like the hello-world image, using docker scan hello-world, I get this error docker: 'scan' is not a docker command. See 'docker --help' My docker version is Client: Docker Engine - Community Version: …
Osinachi
  • 656
  • 8
  • 14
5
votes
2 answers

How to copy artifacts between projects in Google Artifact Registry

Previously using Container Registry one could copy a container between projects using this method However I am unable to get this working using Artifact Registry. If I try gcloud artifacts docker tags add \ …
5
votes
2 answers

creating a separate docker-compose configuration for production and development

I have a docker-compose setup for development, and I need to replicate the same file for production or staging. Currently, aside from volumes ports and environment I am not quite sure what settings "may need" to be changed for…
samayo
  • 16,163
  • 12
  • 91
  • 106
5
votes
2 answers

What is the gcloud API for the Google Container Registry

I have to list the Docker container images published in a certain project, but I cannot find an appropriate API using the gcloud CLI tool. Is this possible? Is there any other solution to list the container images form this private container…
4
votes
1 answer

can i create a LXC image from my own custom OS?

Am new to lxc. I want to create my own lxc containers from existing OSs(my own unix kernel compiled in different architecture). I am trying to use "lxc-create". Can anyone suggest me how to create my own containers and is it possible to create one…
3
votes
2 answers

How to refer local docker images loaded from tar file in Kubernetes deployment?

I am trying to create a Kubernetes deployment from local docker images. And using imagePullPolicy as Never such that Kubernetes would pick it up from local docker image imported via tar. Environment SingleNodeMaster # one node deployment But…
Mozhi
  • 757
  • 1
  • 11
  • 28
2
votes
1 answer

Is there a way to run /kaniko/executor as non-root user inside container to build an image?

I am trying to run /kaniko/executor in corporate OKD cluster to build docker images as part of CI process using Jenkins. This is the first time we are trying to introduce kaniko in our OKD cluster . The Jenkins agent workload runs as pod inside the…
karthik ravi
  • 59
  • 1
  • 3
2
votes
0 answers

OpenShift Dockerfile Build that references an ImageStream?

I would like to build an image from a Dockerfile using an OpenShift BuildConfig that references an existing ImageStream in the FROM line. That is, if I have: $ oc get imagestream openshift-build-example -o yaml apiVersion:…
larsks
  • 277,717
  • 41
  • 399
  • 399
2
votes
2 answers

Docker Registry: How do I get the list of digest of an image layers?

I am trying to list the layers digest of an image (e.g.: ubuntu) that is loaded to a docker registry. I am basically looking for the equivalent of docker manifest inspect --verbose for docker registry and which gives a similar…
McLan
  • 2,552
  • 9
  • 51
  • 85
2
votes
2 answers

Debug Alpine Image in K8s: No `netstat`, no `ip`, no `apk`

There is a container in my Kubernetes cluster which I want to debug. But there is nonetstat, no ip and no apk. Is there a way to upgrade this image, so that the common tools are installed? In this case it is the nginx container image in a K8s 1.23…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
2 answers

Database in docker containers - readonly images vs durability

Docker images are read only. When we instantiate a container from an image, the processes hosted in the container are able to write on disk, but those changes do not survive container restart. There are plenty of docker containers hosting databases…
user256890
  • 3,396
  • 5
  • 28
  • 45
2
votes
1 answer

Best practice for build / deployment of docker images

I've just finished the basic pipeline for my angular application, which runs in a Node image in docker. So, the process works as follows: push to Gitlab > Hook to Jenkins Build > Deployment script to docker build image and push to Quay > Publish…
Daniel Dawes
  • 975
  • 5
  • 16
1
2 3 4