docker-run Questions

16

Solved

I have a Python (2.7) app which is started in my dockerfile: CMD ["python","main.py"] main.py prints some strings when it is started and goes into a loop afterwards: print "App started" while T...
Surcease asked 16/4, 2015 at 0:47

14

Solved

I was following this post - the reference code is on GitHub. I have cloned the repository on my local. The project has got a react app inside it. I'm trying to run it on my local following step 7 ...
Blaise asked 9/6, 2019 at 7:31

22

Running the docker registry with below command always throws an error: dev:tmp me$ docker run \ -d --name registry-v1 \ -e SETTINGS_FLAVOR=local \ -e STORAGE_PATH=/registry \ -e SEARCH_BACKEND=...
Hahnemann asked 29/7, 2015 at 10:26

10

Solved

I'm confused about when should I use CMD vs RUN. For example, to execute bash/shell commands (i.e. ls -la) I would always use CMD or is there a situation where I would use RUN? Trying to understand...
Samp asked 26/5, 2016 at 13:11

23

Solved

According to tutorial I read so far, use "docker run -d" will start a container from image, and the container will run in background. This is how it looks like, we can see we already have container...
Berkly asked 13/5, 2015 at 8:41

2

I don't know why, but I've installed docker using npm (i've installed the app too). I'm on a mac air M1 And when running any docker command (run), i've got this message (example with rabbitMQ): doc...
Thrawn asked 26/1, 2023 at 16:25

5

I want to set GOOGLE_APPLICATION_CREDENTIALS inside my docker container using my key.json file but I don't want to copy this file into my container.
Mcguinness asked 22/7, 2019 at 0:1

5

Solved

Given a file with a SQL insert: INSERT INTO countries (id, country_code, name) VALUES (1, 'AF', 'Afghanistan'), (2, 'AL', 'Albania'); I would like to run the file by using the docker run command...
Matriculate asked 9/1, 2016 at 0:49

8

Solved

I'm experimenting with Dockerfiles, and I think I understand most of the logic. However, I don't see the difference between "exposing" and "publishing" a port in this context. All the tutorials I ...
Inform asked 1/3, 2014 at 6:35

6

Solved

I'm trying to run a pulled image without any success. I pulled an image from AWS using the Image URI. when I run docker images I can see my pulled image: REPOSITORY TAG IMAGE ID CREATED SIZE alp...
Exactitude asked 2/6, 2019 at 8:29

3

Solved

Say I have this in a Dockerfile: ARG FOO=1 ENTRYPOINT ["docker.r2g", "run"] where I build the above with: docker build -t "$tag" --build-arg FOO="$(date +%s)" . is there a way to do something...

1

We have a build pipeline that first does a docker build using a dockerfile. That dockerfile has a number of COPY commands. We also have a later step that does a docker run, with 'cp' command, as fo...
Palpate asked 28/1, 2021 at 14:14

3

Solved

In my application.yml file, I added the server port on 8080. server: port: 8080 Now in my Dockerfile, I am exposing port range 8080-8089. Here my goal is I will run this image on the different ex...
Miss asked 16/4, 2021 at 6:30

3

What I want I want to set the username and password when I start the container for example: docker run --password=mysupersafepw --user=myusername mcr.microsoft.com/windows/servercore What I've ...
Hearken asked 24/3, 2020 at 10:27

2

I ran this: docker run -ti -p 80:80 --name esproxy "$tag" but I get this error: docker: Error response from daemon: driver failed programming external connectivity on endpoint esproxy (ead1...

3

Solved

I have this Dockerfile: FROM 939fj39f3932.dkr.ecr.us-west-2.amazonaws.com/teros_keys:8e31674 WORKDIR /zoom COPY app.sh . ENTRYPOINT ["exec", "/zoom/app.sh"] CMD [] I build it and it works fin...
Sumikosumma asked 8/8, 2019 at 23:22

2

I have a file that I can't edit but needs to run on in a docker container. Because the file doesn't have an extension, I have to use chmod for setting the file executable. But after I build the doc...
Ellery asked 19/10, 2020 at 8:57

5

Solved

I have this Dockerfile: FROM chekote/gulp:latest USER root RUN apt-get update \ && apt-get upgrade -y \ && apt-get install -y sudo libltdl-dev ARG dockerUser='my-user-name'; A...
Cressida asked 2/11, 2018 at 23:28

2

Solved

Say I run a docker container as a daemon: docker run -d foo is there a way to write to the stdin of that container? Something like: docker exec -i foo echo 'hi' last time I checked the -i and...
Snorter asked 21/1, 2020 at 2:8

1

Solved

I need to use the official PowerShell Core Docker image to run a Docker container and make it execute a PowerShell script file. I know it can be done using a Dockerfile and Docker build, but can't...
Waylon asked 26/11, 2019 at 14:30

3

I have this docker run command: docker run --rm --name=gitleaks \ -v "/keys/ssh/values:/root/.ssh" \ zricethezav/gitleaks \ --ssh-key='bucket' \ --repo "$line" I tranlated it to this: dock...
Kempis asked 10/5, 2019 at 20:29

2

Solved

We are trying to start a fargate container on AWS ECS. In the container definition we have "command": [ "/bin/bash", "-c", "\"envsubst < /etc/nginx/conf.d/default.conf.template > /etc/ng...
Frau asked 24/2, 2019 at 13:0

2

Given the following command: docker run -dit -p 9080:9080 -p 9443:9443 -p 2809:2809 -p 9043:9043 --name container_name --net=host myimage:latest bash How to convert it into an equivalent docker-...
Philbrook asked 12/2, 2019 at 13:9

1

Solved

I ran docker run -v and it shows error as invalid characters in local volume name. "If you intended to pass a host directory, use absolute path" also is printed in the terminal. Tried re...
Hydrastine asked 31/1, 2019 at 9:40

1

Solved

I have two docker containers: database app that consumes the database I run my database container like this: docker run --name my-db -p 127.0.0.1:3306:3306 my-db-image And my app container li...
Sympathin asked 13/1, 2019 at 1:51

© 2022 - 2024 — McMap. All rights reserved.