This runs the nginx web server in the background and makes it reachable at http://localhost:8080.
docker run -d --name web -p 8080:80 nginx docker ps # running containers docker logs -f web # follow its logs docker exec -it web sh # open a shell inside it docker stop web docker rm web docker images # downloaded images docker system prune # clean up unused stuff