Questions tagged [docker-run]

214 questions
0
votes
1 answer

How to configure nginx to serve staticfiles in docker django app

I'm setting up a new server and running Django application via docker run -p 8000:8000 --name=somename etc. So now I need to configure NGINX to serve static files of my Django application
0
votes
1 answer

Copy Docker image to running container

Is there a way to copy a Docker image to a running container? Or perhaps the way to do it is to start a container with the new image and share a volume between it and other containers? Is there a way to add a volume to a running container?…
user7898461
0
votes
2 answers

Prevent apache2 / http2 from running as daemon for Docker container?

I have this at the end of Dockerfile: ENTRYPOINT service apache2 start I get this logged: * Starting Apache httpd web server apache2 and then my container will exit - it shouldn't be an error, I just think the container exits because the process…
user7898461
0
votes
1 answer

Checking cache using ADD command with Dockerfile

I think it's the http headers that are being sent by Bitbucket. I have this in a Dockerfile: ADD https://bitbucket.org/teros/datavana/raw/"$commit"/moodwire/mwapi/requirements.txt '/teros/temp/requirements.txt' ADD…
user5047085
0
votes
1 answer

Docker run: invalid reference format

I am getting this error: docker: invalid reference format. See 'docker run --help'. I have this: docker run --rm \ "$ecr_endpoint/notifier-cli:latest" \ --build-exit-code "$exit_code" \ --event…
user7898461
0
votes
2 answers

Add arguments to entrypoint/cmd for different containers

I have this simple node.js image: FROM node:12 USER root WORKDIR /app COPY package.json . COPY package-lock.json . RUN npm i --production COPY . . ENTRYPOINT node dist/main.js ultimately, I just want to be able to pass different arguments to…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
1 answer

What is the docker run -r flag

I am looking at this repo: https://github.com/zricethezav/gitleaks To run with Docker we'd use docker run --rm --name=gitleaks zricethezav/gitleaks -v -r https://github.com/zricethezav/gitleaks.git I am having trouble figuring out what the -r flag…
user5047085
0
votes
1 answer

Attach a file (Config file) at the time of run docker container from local machine

I have created a customised-docker image which runs some code after creating a container. But I want to attach a config file at the time of deployment and our config file is saved on the local machine. docker run -d -ti -v /home/logs/:/home/logs/…
0
votes
1 answer

Docker container not running with Windows system call error

I am working on trying to run the dotnet/core/sdk container in Azure Pipelines. To get everything lined up, I built a PowerShell script that effectively pulls the container and drops the necessary files inside it before running it: $compositeImage =…
Den
  • 16,686
  • 4
  • 47
  • 87
0
votes
2 answers

Docker ENTRYPOINT shell script

I have this in a Dockerfile WORKDIR /app COPY run.sh . ENTRYPOINT ./run.sh it says it cant find run.sh, but when I do WORKDIR /app COPY run.sh . ENTRYPOINT bash run.sh then it works. Why would this be?
user1604294
0
votes
0 answers

Docker: Issue creating a Portainer container

I'm trying to create a Portainer container in Windows 10 (and Docker ToolBox), but I'm getting an error using this docker run command: docker run --name portainer --restart unless-stopped -p 9090:9000 -e TZ=America/Chicago -it --mount…
J. Scott Elblein
  • 4,013
  • 15
  • 58
  • 94
0
votes
1 answer

how to docker run, support Ctrl+C, and not combine stderr

I have a bunch of scripts that I run inside docker containers. They're called by scripts and are not meant to be interactive. The outer scripts are sometimes run in a terminal, and sometimes not (as in CI). I want to support users killing the…
philo
  • 3,580
  • 3
  • 29
  • 40
0
votes
1 answer

Docker run time environment variable is not available

I have the need to pass a variable at runtime when the docker run command is run and the same is to be read inside the container. This is the docker run command that i use docker run -it -e "URL=test" test bash But the variable URL is not…
Manikandan Kannan
  • 8,684
  • 15
  • 44
  • 65
0
votes
3 answers

Is there a min condition for a container to continue running?

Why does the container exit when the entry point specifies to run a command in the background? E.g. if I run docker run -d ubuntu bash -c "sleep 12000&" the container exits. If I run docker run -d ubuntu bash -c "sleep 12000" the container continues…
Jim
  • 3,845
  • 3
  • 22
  • 47
0
votes
2 answers

How can I find the images being pulled from the SHA1s?

When we run a docker container if the relevant image is not in the local repo it is being downloaded but in a specific sequence i.e parent images etc. If I don’t know anything about the image how could I find from which images is being based on…
Jim
  • 3,845
  • 3
  • 22
  • 47