anxolerd / dvpwa

Damn Vulnerable Python Web App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions for accessing this container

CaptainMcCrank opened this issue · comments

Hi!

Exploring your project for use in teaching kids. Could you add a little documentation for accessing your container after you've installed it? I'm sure this is basic docker stuff, but it's been a couple of years since I've done substantial docker work and now I can't recall how to access a running container from localhost. I'm sure I won't be the only person running into this issue :D

FWIW:

$ docker container ls   
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
28a7907aaa20        redis:alpine        "docker-entrypoint.s…"   4 minutes ago       Up 4 minutes        6379/tcp            dvpwa_redis_1
c78d1813e5c4        dvpwa_postgres      "docker-entrypoint.s…"   4 minutes ago       Up 4 minutes        5432/tcp            dvpwa_postgres_1 

when I attempt to browse to localhost:8080 from the Host operating system, i get a traditional safari "server not found" error.

Hi, @CaptainMcCrank,

Sorry, I've noticed this issue only now. Unfortunately, there is indeed a little bug, due to which the first start is faulty (the application itself fails). This occurs because the database has not started at the moment when the application tries to connect to PostgreSQL, as migrations take some time and delay Postgres startup.

This should be fixed in 5ee2dc2

@CaptainMcCrank, can you, please, check whether the issue was resolved?

I'll check back tomorrow with results.

My first pass review is that your documentation makes sense. I'll confirm that following the steps on my side results in expected behavior. Thank you!