Questions tagged [docker-run]

214 questions
0
votes
0 answers

Permission denied while creating file in docker container

While running a java code in a docker container with root user, getting permission denied error. Java Code File f = new File("example.xlsx"); f.createNewFile(); // error at this line Error: ava.io.IOException: Permission denied at…
0
votes
1 answer

How to automatically execute a command from a docker container on boot the container from the container's shell?

I have a container named test. I want to be able to start the container on Ubuntu boot which I think I can do with the always command. Then I want to run one command when the container boots. For instance, I want to run ls so it shows me the list of…
0
votes
1 answer

Why does using a blank/empty volume in docker-compose.yml allow persistence but using a relative path fails (eg jenkins gui unavailable)?

Questions: Why does a relative host volume path (i.e., ./jenkins_home:...) prevent jenkins from serving it's GUI yet an empty volume path allows jenkins to serve it's GUI? Where is the aliased host volume (i.e., volumes: jenkins_home: )…
surajs02
  • 451
  • 7
  • 18
0
votes
1 answer

unable to run docker container docker4dotnet/nanoserver

Learning docker following a course in udemy. i have all the prerequisites like docker desktop and switched to windows container. While trying to run a container using docker container run docker4dotnet/nanoserver hostname getting error like…
venkatesh
  • 52
  • 4
0
votes
1 answer

Docker Network - moving from host to bridge

I have many existing docker containers that are run using network=host parameter (configured at "docker run -D "). I have a requirement to switch to another network type. I would prefer to make the transition as simple as possible. Further,…
Timothy Clotworthy
  • 1,960
  • 2
  • 19
  • 42
0
votes
1 answer

how do i go ahead of this docker run command output

I am new to docker. trying to go throw this tutorial. while running docker. docker run -it --rm -p 5200:80 --name pizzabackendcontainer pizzabacken I am getting the output in the image. what is the output suggest. i feel something wrong in the…
maztt
  • 12,278
  • 21
  • 78
  • 153
0
votes
1 answer

My docker image is not seeing the enviornemnt variables when using the `--env` yet it sees with using docker-compose

I created a docker image of my OrchardCore project. I tried to run it using the following command docker container run --detach --publish 8085:80 --name imageName MYIMAGE -e OrchardCore__DatabaseProvider=SqlConnection -e…
0
votes
1 answer

Why -p is not working when i use it with docker run?

It's my first time using Docker and im trying to run an image but i need it to work on the port 4242, but when i write the command sudo docker run -it --rm -p 4242:5001 docker-project:v1 and when i go to https://localhost:4242/weatherforecast with…
user16531323
0
votes
1 answer

Docker inspect showing memory and nanocpus as 0

I have deployed a container using the docker stack deploy command. The service gets deployed properly and also the contianer is running. I have specified some resource reservation constaints as follows: deploy: mode: replicated …
phileinSophos
  • 362
  • 4
  • 22
0
votes
0 answers

Is there a way to avoid login when using --privileged to run a docker container

I'm using a docker of image centos:7.9.2009, is there a way to avoid login when using --privileged=true to run a container? Here is the command: docker run -d --privileged=true -v /sys/fs/cgroup:/sys/fs/cgroup --name centos_base centos:7.9.2009…
0
votes
0 answers

ModuleConcatenation bailout: Cannot concat with ./node_modules/@angular/animations/fesm2015/animations.js

I am trying to run my angular app on docker and once I do docker run, I am getting this error at the end of ng build --aot --configuration production --build-optimizer I am not getting this error when I run the same ng build command in local , Build…
0
votes
1 answer

Error standard_init_linux.go:211: exec user process caused "exec format error" When running docker run

I am trying to run a docker image from this Dockerfile: #!/bin/bash FROM python:3.8.2 ENV PYTHONBUFFERED 1 ENV PYTHONWRITEBYTECODE 1 RUN apt-get update \ && apt-get install -y netcat ENV APP=/app # Change the…
Amr Aly
  • 3,871
  • 2
  • 16
  • 33
0
votes
1 answer

Writing Outputs Using Python In A Docker Container

I am trying to write a text (.txt) file to a local Desktop folder on Windows 10 after building a docker image (docker_run_test). The docker build seems to work seamlessly using "docker build -t docker_run_test .", running the command from the…
mdl518
  • 327
  • 3
  • 14
0
votes
0 answers

How can i Convert CMD to Entrypoint instruction in dockerfile

My cmd instruction in dockerfile is: CMD /etc/init.d/ssh start && su - gpadmin bash -c /home/gpadmin/entrypoint.sh && tail -f /dev/null I want to convert it to ENTRYPOINT instruction. My entrypoint script file is entrypoint.sh I want to enter the…
COBHC
  • 67
  • 1
  • 8
0
votes
1 answer

How to mount volume without using docker

In order to mount a directory to a container i used bind mounts https://docs.docker.com/storage/bind-mounts/ Now i'm trying to find a way to replace $docker run -v command.
Gioni
  • 1
  • 1