Questions tagged [docker-run]

214 questions
0
votes
1 answer

Azure App Service startuop command isn't working on a docker container

I'm using the Azure AppService version of WordPress. This version uses the wordpress-alpine-php docker image, running nginx version 1.20.2. I need to run a startup script. I've followed all the documentation but it's not working. I added the script…
Don Chambers
  • 3,798
  • 9
  • 33
  • 74
0
votes
0 answers

docker run - Client.Timeout exceeded while awaiting headers

I downloaded docker desktop on my Windows 10. When I try to: docker run -d -p 80:80 docker/getting-started it gives response unable to find image ... localy OK, there is no problem but next it should start to download that image but I am…
Lulex97
  • 231
  • 1
  • 10
0
votes
0 answers

Can we change the hostname of Docker Container running in VM?

I am creating an elasticsearch image and want to run the container on some remote machine. Suppose the machine hostname is "abc.com", so I am accessing the URL as "abc.com:9200" to access elasticsearch. After testing successfully, this container…
0
votes
0 answers

Usage: Docker run

I have my Dockerfile setup for dbt-snowflake/dbt-core with all its prerequisites. I also created a group for that docker image and added some users to that group while writing a docker file. Incase, if some user want to get added to the image and…
0
votes
1 answer

Docker mount volume specify path

please I really need help creating a docker volume. By default, when I create a volume, its location will be /var/lib/docker/volumes/ I need to change this default location to my SSD disk, specifically /media/username/T7/docker/volumes Please how do…
masch1na
  • 97
  • 5
0
votes
0 answers

docker start -ia requires docker run -it ... but why?

Learning Docker, and encountered an interesting scenario. Consider the following sequence of Docker commands. For reference, the docker version in the machine I'm connected at is 20.10.18, build b40c2f6 and I have the latest centos image…
Jason
  • 2,495
  • 4
  • 26
  • 37
0
votes
1 answer

How to force-build a docker which is pre-requisite of another docker?

I have a docker, DockerB, which is based on DockerA. I want to make sure that whenever DockerB is built (e.g. using docker build ... DockerB), it first builds DockerA and then builds DockerB. What is the best way to achieve that? Currently I am…
Cashif Ilyas
  • 1,619
  • 2
  • 14
  • 22
0
votes
1 answer

Docker will not run docker run -p 6379:6379 –name some-redis -d redis command

For my course we have to run: docker run -p 6379:6379 –name some-redis -d redis:4.0.1 But when I run this command it says that its on invalid format. This class is a couple years old so I know things change but in the project instructions it said to…
0
votes
1 answer

docker - mounted file is empty in container

I have the following docker run command that I send via ssh from my CI (as the problem also happens when I try it on the server directly I skip all ssh related stuff here). docker run --name amc-node-be -d -p 10.0.0.3:3000:3000 --mount…
andymel
  • 4,538
  • 2
  • 23
  • 35
0
votes
0 answers

docker: Error response from daemon: invalid cluster node while attaching to network

I am newbe on docker and I have this problem: On an image that runs fine (to an extent), I try to run (from the same image) adding --network and I get this error: PS C:\MyApp> docker run -v C:\MyApp:C:\MyApp --network=host -dit…
0
votes
3 answers

What to do if the docker container hangs and does not respond to any command other than ctrl+c?

I have been running a nvidia docker image since 13 days and it used to restart without any problems using docker start -i command. But, today while I was downloading pytorch inside the container, download got stuck at 5% and gave no…
Suvidha
  • 429
  • 1
  • 6
  • 17
0
votes
2 answers

Docker container closes immediately when using --rpc

When running the command sudo docker run -d --name ethereum -p 8545:8545 -p 30303:30303 ethereum/client-go --rpc --rpcaddr "0.0.0.0" --rpcapi="db,eth,net,web3,personal" --rpccorsdomain "*" --dev the container closes almost immediately. Removing all…
siya
  • 7
  • 2
  • 4
0
votes
1 answer

Why cant docker accept the read command in my bash script?

I am having a specific issue when trying to execute the docker run command on an image I have created. I have ran the spellchecker for my scrip and know I can improve the style by using double quotes- but frankly this does not effect my script from…
JnooriRS
  • 103
  • 11
0
votes
2 answers

why I am unable to exec into the docker container if there is an error in container

I am running docker container Nginx, there are some errors in it, I cannot exec into the container because it is stopped, how can I exec into the stopped container. How to avoid the container stopping, if there exists an error in the container Can…
0
votes
1 answer

Can't mount Docker volume from Java

My working environment is macOS 12. UPDATE: Ubuntu 20.04 has the same issue. I'm trying to create a Docker container and mount a volume to it. Here's what I tried: public class Test { public static void main(String[] args) throws IOException,…
OpenSource
  • 13
  • 4