Sachin Handiekar
January 2019
M T W T F S S
« Sep    
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories


Basic Docker Commands

Sachin HandiekarSachin Handiekar

Sachin:~ SachinHandiekar$ docker run -d -p 8080:80 nginx952a999c0f48a712023ca8d469eba5c8fbe0ee07554d736dd935f09db511f76d

Sachin:~ SachinHandiekar$ docker run -d -p 8081:80 nginx751163aa99f994f4bd0cb3ad5c42872234ce9b0ee68781c6463f86fbd55c86bc
Bash

List Docker Instances

Sachin:~ SachinHandiekar$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
751163aa99f9 nginx “nginx -g ‘daemon of…” About a minute ago Up About a minute 0.0.0.0:8081->80/tcp sleepy_elbakyan
952a999c0f48 nginx “nginx -g ‘daemon of…” About a minute ago Up About a minute 0.0.0.0:8080->80/tcp vibrant_cocks

Sachin:~ SachinHandiekar$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 7042885a156a 4 weeks ago 109MB
hello-world latest 4ab4c602aa5e 4 months ago 1.84kB

Sachin:~ SachinHandiekar$ docker rm -f sleepy_elbakyan vibrant_cocks
sleepy_elbakyan
vibrant_cocks

achin:~ SachinHandiekar$ docker rmi nginx
Untagged: nginx:latest
Untagged: nginx@sha256:b543f6d0983fbc25b9874e22f4fe257a567111da96fd1d8f1b44315f1236398c
Deleted: sha256:7042885a156a01cc99e5a531f41ff47ea2facf655d4fc605aa80b216489586a4
Deleted: sha256:fb06e7fd070131bf49b9c5558eb0b3beecb698b5122e6d989c1a1cc009710d2d
Deleted: sha256:cc266db60daae61318dc085eeb60a3c6a876d6fc75f9fa7d7f7f9a47d4353f33
Deleted: sha256:7b4e562e58dcb7fbe1e27bb274f0ff8bfeb2fd965203380436e159df9f218900
Sachin:~ SachinHandiekar$

Comments 0
There are currently no comments.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.