dockerfile

connection refused when using dockerfile to pull git repository

痴心易碎 提交于 2021-01-29 15:42:56
问题 Local setup for kubernetes: Mac OS Docker for desktop >> kubernetes >> traefik >> Gitea The gitea is installed in the cluster and exposed as clusterIP service ingresses through treafik which is accessible at http://gitea.local. Everything is butter smooth till here. The pain: Now i am creating a dockerfile and using a docker build to build an image. This dockerfile is trying to clone a repository from http://gitea.local. The problem is i am getting connection refused all the times. RUN mkdir

Docker shows blank local container, console shows “Failed to load resource: the server responded with a status of 404”

随声附和 提交于 2021-01-29 14:13:39
问题 I am trying to run a Docker container locally, via the command: docker run --rm -d mellon:latest The gunicorn command which is executing is: gunicorn -b 0.0.0.0:8000 mellon.wsgi (more specifically in the Dockerfile): ... EXPOSE 8000 CMD python3 manage.py makemigrations && \ python3 manage.py migrate && \ gunicorn -b 0.0.0.0:8000 mellon.wsgi Everything in the terminal seems fine, this is the end of what I see: ... [2020-07-28 14:52:33 +0000] [10] [INFO] Starting gunicorn 20.0.4 [2020-07-28 14

permission issue on vsdbg while running docker.exe - exec: \"/app/vsdbg\: permission denied

旧城冷巷雨未停 提交于 2021-01-29 11:14:29
问题 My object is to debug the docker container using vsdbg , this container contains asp.net core api application. To do this, created docker image using docker file, and then run the container. And to start remote debugging , used below command: docker exec -i a05a0439540b "/app/vsdbg" then got below error message: OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"/app/vsdbg\": permission denied": unknown please find below docker file

Dockerfile from python:3.6-slim add jdk8

微笑、不失礼 提交于 2021-01-29 10:30:44
问题 someone could help me, i'm starting from follow docker file FROM python:3.6-slim RUN apt-get update RUN apt-get install -y apt-utils build-essential gcc And i would add an openjdk 8 thanks 回答1: You can download java tar.gz, unpack it and set environment variable. Below a sample of implementation in Dockerfile: FROM python:3.6-slim RUN apt-get update RUN apt-get install -y apt-utils build-essential gcc ENV JAVA_FOLDER java-se-8u41-ri ENV JVM_ROOT /usr/lib/jvm ENV JAVA_PKG_NAME openjdk-8u41-b04

How to authenticate to GCP from a containerized Dockerfile

自作多情 提交于 2021-01-29 09:50:43
问题 I am trying to build a new Docker image dynamically using a Cloud Build trigger job, however I fail to see how to safely retrieve my credentials to authenticate against GCP with a service account. Here are the steps: Dockerfile created with steps to build a Docker image. One of the steps includes downloading a file from Google Storage (bucket) that I need to access as a GCP service account. Docker image is built by using a Cloud Build trigger that is triggered after each change in the linked

Docker error during connect: Post http://docker:2375/v1.40/build?

早过忘川 提交于 2021-01-29 09:41:51
问题 I am using docker+machine to run my gitlab ci/cd jobs. So my .gitlab-ci.yml looks like below: stages: - RUN_TESTS image: name: docker:stable services: - name: docker:dind variables: DOCKER_HOST: tcp://docker:2375/ DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "" build-docker: stage: RUN_TESTS script: - echo "Running the tests..." - docker build -t run-tests . This works totally fine with docker:dind image set as the service block as shown above. Now here comes the fun part, I need some other

TestNG docker-compose can not find localhost url

为君一笑 提交于 2021-01-29 08:40:49
问题 I have this docker-compose configuration version: '3' services: selenoid: image: "aerokube/selenoid:latest" container_name: selenoid ports: - "0.0.0.0:4444:4444" networks: - selenoid volumes: - ".:/etc/selenoid" - "./target:/output" - "/var/run/docker.sock:/var/run/docker.sock" - "./target:/opt/selenoid/video" environment: - "OVERRIDE_VIDEO_OUTPUT_DIR=$PWD/target" command: ["-limit", "10", "-conf", "/etc/selenoid/browsers.json", "-video-output-dir", "/opt/selenoid/video", "-container-network"

Active Directory Docker - Windows Authentication Mode

怎甘沉沦 提交于 2021-01-29 07:34:37
问题 How to connect from windows docker container to Azure Active Directory? My problem: I have to connect to Database (in some server) which take only access as a Windows Authentication Mode but my container is not in domain. 回答1: You need to configure gMSA (group managed service account) for that. Please follow the below guides in sequence: Create gMSAs for Windows containers Configure your app to use a gMSA Run a container with a gMSA Orchestrate containers with a gMSA 来源: https://stackoverflow

Error running docker build for arm32v7 container on amd64 linux machine: standard_init_linux.go:207

假如想象 提交于 2021-01-29 05:32:02
问题 I have an amd64 linux machine that I'm using to build an arm32v7 container. When docker build encounters the first RUN command, it errors out with: standard_init_linux.go:207: exec user process caused "no such file or directory" This can be easily reproduced without a docker file by running docker run -it arm32v7/ubuntu:xenial on an amd64 linux host. I've seen this complaint elsewhere, but most advice is that you need to build an arm32v7 container on an arm32v7 host. This is fairly

Copy file(s) within the container in Dockerfile

随声附和 提交于 2021-01-28 22:50:42
问题 How can I copy a file from a path within the container to a different path within that same container in a Dockerfile during the docker-compose build process? COPY <src> <dest> This copies a file from the host outside the container. I don't know how to have <src> specify a file inside the container to copy. 回答1: as @tkausl and @JohnKugelman pointed out files can be copied by the following command syntax: RUN cp <src-path-within-the-container> <dest-path-within-the-container> 来源: https:/