docker-image

How to open Ubuntu GUI inside a Docker image

99封情书 提交于 2019-12-03 05:10:28
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? VonC 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 Docker containers) in domeide.github.io/ (Docker meets the IDE!) For example: Docker Tools for

Docker container with entrypoint variable expansion and CMD parameters

元气小坏坏 提交于 2019-12-01 15:44:45
I want to create a Docker Image that acts as an executable for which the user passes a token as an environment variable. The executable has sub commands that the user should pass via dockers CMD (think of git with authentication via Env). However, Docker does not append the CMD to the entrypoint. The relevant part of my Dockerfile looks like this: ENTRYPOINT ["/bin/sh", "-c", "/usr/bin/mycmd --token=$MY_TOKEN"] CMD ["pull", "stuff"] So if this container is executed without any CMD overrides and secret as the MY_TOKEN variable, I would expect mycmd --token=secret pull stuff to be executed. If

Docker container with entrypoint variable expansion and CMD parameters

有些话、适合烂在心里 提交于 2019-12-01 13:50:53
问题 I want to create a Docker Image that acts as an executable for which the user passes a token as an environment variable. The executable has sub commands that the user should pass via dockers CMD (think of git with authentication via Env). However, Docker does not append the CMD to the entrypoint. The relevant part of my Dockerfile looks like this: ENTRYPOINT ["/bin/sh", "-c", "/usr/bin/mycmd --token=$MY_TOKEN"] CMD ["pull", "stuff"] So if this container is executed without any CMD overrides

Docker - What is proper way to rebuild and push updated image to docker cloud?

别来无恙 提交于 2019-11-30 10:57:31
What I'm currently doing: Dockerfile: FROM python:3.5.1 ENV PYTHONUNBUFFERED 1 RUN mkdir /www WORKDIR /www ADD deps.txt /www/ RUN pip3 install -r deps.txt ADD . /www/ RUN chmod 0755 /www/docker-init.sh Build command: docker build -t my-djnago-app:latest . Tagging: docker tag my-djnago-app:latest lolorama/my-djnago-app-img:latest Pushing: docker push lolorama/my-djnago-app-img:latest After following these steps, the repository image still hasn't updated. I keep getting this message - "Layer already exists". The push refers to a repository [docker.io/lolorama/my-django-app-img] fd5aa641b308:

Is there a way to combine Docker images into 1 container?

我们两清 提交于 2019-11-30 10:53:34
问题 I have a few Dockerfiles right now. One is for Cassandra 3.5, and it is FROM cassandra:3.5 I also have a Dockerfile for Kafka, but t is quite a bit more complex. It is FROM java:openjdk-8-fre and it runs a long command to install Kafka and Zookeeper. Finally, I have an application written in Scala that uses SBT. For that Dockerfile, it is FROM broadinstitute/scala-baseimage , which gets me Java 8, Scala 2.11.7, and STB 0.13.9, which are what I need. Perhaps, I don't understand how Docker

Is there a way to combine Docker images into 1 container?

a 夏天 提交于 2019-11-30 01:44:41
I have a few Dockerfiles right now. One is for Cassandra 3.5, and it is FROM cassandra:3.5 I also have a Dockerfile for Kafka, but t is quite a bit more complex. It is FROM java:openjdk-8-fre and it runs a long command to install Kafka and Zookeeper. Finally, I have an application written in Scala that uses SBT. For that Dockerfile, it is FROM broadinstitute/scala-baseimage , which gets me Java 8, Scala 2.11.7, and STB 0.13.9, which are what I need. Perhaps, I don't understand how Docker works, but my Scala program has Cassandra and Kafka as dependencies and for development purposes, I want

Stopping Docker containers by image name - Ubuntu

百般思念 提交于 2019-11-29 18:45:45
On Ubuntu 14.04 (Trusty Tahr) I'm looking for a way to stop a running container and the only information I have is the image name that was used in the Docker run command. Is there a command to find all the matching running containers that match that image name and stop them? VonC Following issue 8959 , a good start would be: docker ps -a -q --filter="name=<containerName>" Since name refers to the container and not the image name, you would need to use the more recent Docker 1.9 filter ancestor , mentioned in koekiebox 's answer . docker ps -a -q --filter ancestor=<image-name> As commented

Docker - What is proper way to rebuild and push updated image to docker cloud?

痞子三分冷 提交于 2019-11-29 16:49:55
问题 What I'm currently doing: Dockerfile: FROM python:3.5.1 ENV PYTHONUNBUFFERED 1 RUN mkdir /www WORKDIR /www ADD deps.txt /www/ RUN pip3 install -r deps.txt ADD . /www/ RUN chmod 0755 /www/docker-init.sh Build command: docker build -t my-djnago-app:latest . Tagging: docker tag my-djnago-app:latest lolorama/my-djnago-app-img:latest Pushing: docker push lolorama/my-djnago-app-img:latest After following these steps, the repository image still hasn't updated. I keep getting this message - "Layer

Error “Get https://registry-1.docker.io/v2/: net/http: request canceled” while building image

孤人 提交于 2019-11-29 01:08:49
问题 I am getting the below error while building an image Step 1/10 : FROM ubuntu:14.04 Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 回答1: I was facing the same issue when trying to build or pull an image with Docker on Win10. Changing the DNS of the Docker vEthernet(DockerNAT) network adapter to 8.8.8.8 fixed it for me, as described in this GitHub issue. To change the DNS go to Docker (TrayIcon) ->

Run a Docker Image as a Container

蹲街弑〆低调 提交于 2019-11-28 14:56:11
I built a docker image from a dockerfile. I see the image was built successfully, but what do I do with it? Shouldn't it be able to run as a container? New to docker so probably a misunderstanding on my end, any help would be great. The specific way to run it depends on whether you gave the image a tag/name or not. $ docker images root@dockertest:~# docker images REPOSITORY TAG ID CREATED SIZE ubuntu 12.04 8dbd9e392a96 4 months ago 131.5 MB (virtual 131.5 MB) With a name (let's use ubuntu ): $ docker run -i -t ubuntu:12.04 /bin/bash Without a name, just using the ID: $ docker run -i -t