Category Archives: Docker

Docker CheatSheet

$ docker ps # List all running containers $ docker ps –all # List all containers whether running or not $ docker system prune # remove all containers To run container and see output add -a flag $ docker logs <container id> # Show logs from last time container ran $ docker stop <container id>… Read More »

Docker Cheatsheet

Create and run a docker container with default command (optional) $ docker run <container> <start up command> Docker run is actually 2 command: docker create + docker start docker create – Creates container from imagedocker start – starts container from id See all containers running on your machine $ docker ps To see all containers… Read More »