docker-image

How to verify if the content of two Docker images is exactly the same?

喜夏-厌秋 提交于 2019-12-06 02:04:28
问题 How can we determine that two Docker images have exactly the same file system structure, and that the content of corresponding files is the same, irrespective of file timestamps? I tried the image IDs but they differ when building from the same Dockerfile and a clean local repository. I did this test by building one image, cleaning the local repository, then touching one of the files to change its modification date, then building the second image, and their image IDs do not match. I used

Need to convert this relatively simple docker pull and run commands into a docker-compose.yml file?

不羁岁月 提交于 2019-12-05 21:50:32
I have three commands that I am using to "update","re-run", and then "clean up" my current docker image via our CI tool of choice (Jenkins). I'm not including my "container stop and remove" commands for simplicity's sake. docker pull my.private.registry:443/my-awesome-app docker run -d --env-file ./env.list -i -p 8080:8080 -p 9990:9990 my.private.registry:443/my-awesome-app docker rmi $(docker images -f "dangling=true" -q) I'm new to docker-compose and I understand that most of these pull/run steps could probably be done within a docker-compose.yml file. I'm hoping someone with experience in

How to delete a Docker image that has no tag?

限于喜欢 提交于 2019-12-05 20:12:23
问题 I use docker since 5months and I never got this problem. I have 2 images with the same ID so I want to delete the one who I know that it's deprecated. The thing is that it has no ID and when I try to do dk rmi -f gitlab-lab:5005/xs/mgmt-docker-gui I got an error : Error response from daemon: No such image: gitlab-lab:5005/xs/mgmt-docker-gui:latest So how can I delete this one and not the other one who has the same ID ? jerome/mgmt-docker-ui latest 537b5ea5aa7b 4 days ago 476 MB gitlab-lab

A completely closed source docker container

。_饼干妹妹 提交于 2019-12-05 15:08:42
I was wondering if it is possible to offer Docker images, but not allow any access to the internals of the built containers. Basically, the user of the container images can use the services they provide, but can't dig into any of the code within the containers. Call it a way to obfuscate the source code, but also offer a service (the software) to someone on the basis of the container, instead of offering the software itself. Something like "Container as a Service", but with the main advantage that the developer can use these container(s) for local development too, but with no access to the

Does docker reuse images when multiple containers run on the same host?

不羁的心 提交于 2019-12-05 10:43:41
My understanding is that Docker creates an image layer at every stage of a dockerfile. If I have X containers running on the same machine (where X >=2) and every container has a common underlying image layer (ie. debian), will docker keep only one copy of the base image on that machine, or does it have multiple copies for each container? Is there a point this breaks down, or is it true for every layer in the dockerfile? How does this work? Does Kubernetes affect this in any way? Dockers Understand images, containers, and storage drivers details most of this. From Docker 1.10 onwards, all the

Does docker run -v or Dockerfile VOLUME take precedence?

独自空忆成欢 提交于 2019-12-04 19:59:23
Dockerfile FROM nginx:1.7 # Deliberately declaring VOLUME before RUN VOLUME /var/tmp RUN touch /var/tmp/test.txt Observation Now I believe I understand the implications of declaring the VOLUME statement before creating test.txt - the volume /var/tmp exposed at runtime will be based on the intermediary container prior to the test.txt file is created so it will be empty (hope this observation is correct) So as expected the following docker run does not show test.txt : docker run kz/test-volume:0.1 But then I tried supplying the volume at runtime as below: docker run -v /var/tmp kz/test-volume:0

Failed to get D-Bus connection: Operation not permitted

依然范特西╮ 提交于 2019-12-04 16:16:33
问题 I'm trying to install ambari 2.6 on a docker centos7 image but in the the ambari setup step and exactly while intializing the postgresql db I receive this error: Failed to get D-Bus connection: Operation not permitted I've got this error every time I try to run a serice on my docker image. I tried every solution in the net but nothing worked yet. Does any one have an idea how to resolve this ? Thank you in advance 回答1: Use this command docker run -d -it --privileged ContainerId /usr/sbin/init

Is it possible to run GUI apps in windows containers?

爷,独闯天下 提交于 2019-12-04 09:34:55
问题 So I'm playing around with this containers concept and specificlly windows containers. I managed to run containers using the windows nanoserver image, however this image meant to services and does not support gui applications (or 32 bit apps). Couldn't find any mentioning of running gui applications (and see there gui) using windows container (found only linux container gui). is there a way to run GUI apps in containers? and so how do I can create my own image containing this support? 回答1:

How to verify if the content of two Docker images is exactly the same?

江枫思渺然 提交于 2019-12-04 06:33:54
How can we determine that two Docker images have exactly the same file system structure, and that the content of corresponding files is the same, irrespective of file timestamps? I tried the image IDs but they differ when building from the same Dockerfile and a clean local repository. I did this test by building one image, cleaning the local repository, then touching one of the files to change its modification date, then building the second image, and their image IDs do not match. I used Docker 17.06 (the latest version I believe). If you want to compare content of images you can use docker

How to open Ubuntu GUI inside a Docker image

这一生的挚爱 提交于 2019-12-03 15:33:10
问题 I have downloaded the Ubuntu image inside Docker on Windows. I can run Ubuntu by: docker run -it ubuntu I only see root , but I don't see the Ubuntu GUI. How do I install or configure the GUI for that image and run applications on that GUI like we run in a VM? 回答1: Generally, the approach for developing with Docker is to keep the IDE on the workstation, and build images with the binary produced from the sources. You can find many example of such a workflow (local compilation, deployment in