A
A
Alistair O2020-11-25 13:39:52
Docker
Alistair O, 2020-11-25 13:39:52

The site on the container is not available, how to get through?

Hello,
there is a virtualbox with two interfaces, one looks to the Internet, the other to the local network, I connect to it on port 22, I launched a docker, and a container with a web server, but the site is not available, what could be wrong?

[email protected]:~# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                          NAMES
2aa339621e4e        nginx               "/docker-entrypoint.…"   8 minutes ago       Up 8 minutes        80/tcp, 0.0.0.0:80->8080/tcp   zen_proskuriakova
fb69e3f0e234        nginx               "/docker-entrypoint.…"   12 minutes ago      Up 12 minutes       80/tcp                         dreamy_robinson
[email protected]:~#

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nird, 2020-11-25
@Nird_o

Docker exec -ti image_id /bin/bash and look at the logs there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question