#Issue-1 :-
When I’m running docker run command the container is building and giving output as container id but exit immediately after creating a container.
- I’m using “appdynamics/sample-app-web” this image.
- Running on my local container
Issue-2 :-
This image is successfully runnning when i manually pulled this image and run docker run command.
But when I’m using terraform configuration files to run this container then container is running but when I’m trying to access it by using ngrok, The web app is not showing.
Can anybody explain me why I’m facing this issuue?
What is the exact command you used? If you did not use the -d
flag, then you’re running things in the foreground.
I used docker run -d -p 3000:3000 appdynamics/sample-app-web
I also tried on another empty ports.
I don’t know a thing about that image, so I can’t tell you how it should behave, what ports it expects, etc. I don’t think we use this in any of our labs. What tutorial are you trying to do here?
Hi @Rajsingh,
If the container starts and then exits right away, run docker ps -a
to get its ID. Then use docker logs <container-id>
to check the logs. Please share the logs here so we can try to help you.
I also used "docker ps " and "docker ps -a " commands but there is no running or stopped container.
Can you test this process? Image - appdynamics/sample-app-web
I’m using kodekloud docker container playground. And I pulled the image from docker hub.
The image has some special requirements. I saw this running docker logs
for the image:
$ docker run -d -p 3333:3000 --name test-dynamics appdynamics/sample-app-web
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
33a04bbd290147b66c76f0d7b2e5f43d7f0b22bc56c188e7ddaefc51aaf262a1
$
$ nc -w2 -v localhost 3333
Connection to localhost port 3333 [tcp/dec-notes] succeeded!
$ curl localhost:3333
curl: (52) Empty reply from server
$ docker logs test-dynamics
Using Controller properties from docker-compose.yml
Controller URL =
Controller Port =
Account Name =
Access Key =
Error: CONTROLLER_URL must be set in docker-compose.yml
So the problem is with the image you chose. I can’t find any documentation for it, so you might try something better known, or that you’ve seen from one of the labs.
Thankyou @rob_kodekloud sir.