From 3bed530660d2ea1ab9bd45d64bdab4af01ef8f49 Mon Sep 17 00:00:00 2001 From: Koray Tugay Date: Sat, 6 Apr 2019 11:55:13 -0400 Subject: [PATCH] Update readme.md --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 5d5a9417..fe4ced08 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,7 @@ First, checkout this project locally and then follow these steps: 4. Run the image in a container: `docker run -d -p 4001:4000 hello-world` - The `-d` flag says to run the container in the background (daemon mode). - The `-p` flag maps port 4000 from the container to port 4001 on the docker machine. -5. View your new container: `docker ps -a` +5. View your new container: `docker ps` 6. Check the logs for your container: `docker logs ` 7. Check the port of the container: `docker port ` 8. Open the app running on the docker machine: `open http://$(docker-machine ip default):4001` @@ -28,7 +28,8 @@ First, checkout this project locally and then follow these steps: - If you make changes to your application, you will need to rebuild your image and restart your container. - The `docker-machine` command controls the virtual machine that is running Docker on your machine. - View logs for a docker container: `docker logs ` -- List the running containers: `docker ps -a` +- List all running containers: `docker ps -a` + - List running containers: `docker ps` - List all local images: `docker images` - Remove an image: `docker rmi ` - Remove a container: `docker rm `