I try to use Docker to run sqli-labs, I use the command:
docker pull acgpiano/sqli-labs
to pull the images, and after I use the command:
docker run -dt --name sqli -p 80:80 --rm acgpiano/sqli-labs
I visit the http://localhost, but my browser shows me 404.. here is the screenshot:
Why I can not get the right page?
Because the page is not accessible on your machines localhost but on your containers localhost.
You can access it if you go to localhost inside your container or on your machines IP.
EDIT:
How to access localhost inside the container:
How to access it in windows 10 (tested with Docker version 18.03.1-ce, build 9ee9f40), I'm using powershell and docker for windows
I would also recommend this example from the docs, great way to get started.