How to deploy mongodb image in docker? Connect to DB using ROBO3T.







In this post, we will see How to deploy mongodb image in docker? and Connect to DB using ROBO3T.

Open PowerShell

1, Check whether mongo image is there or not.
$ docker image inspect mongo

2, Pull mongodb latest image from docker
$ docker pull mongo:latest
$ docker image ls

3, Run mongo image in detached mode on port 27017.
$ docker run --name local-mongo -p 27017:27017 -d mongo

4, Check running containers.
$ docker container ls

5, Open Mongo container logs.
$  docker container logs <containerId> -f

6, Open Robo3T and connect to localhost:20172.

7, Stop running container.
$ docker container stop <containerId>

8, Remove stopped container.
$ docker container ls -a
$ docker container rm <containerId>

9, Delete mongo image.
$ docker image ls
$ docker image rm -f <ImageId>

10, Check whether mongo image is there or not
$ docker image inspect mongo







Log:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\developer> docker image inspect mongo
[]
Error: No such image: mongo
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker pull mongo:latest
latest: Pulling from library/mongo
7b1a6ab2e44d: Pull complete
90eb44ebc60b: Pull complete
5085b59f2efb: Pull complete
c7499923d022: Pull complete
019496b6c44a: Pull complete
c0df4f407f69: Pull complete
351daa315b6c: Pull complete
5b6df31e95f8: Pull complete
e82745116109: Pull complete
98e820b4cad7: Pull complete
Digest: sha256:cf9f5df5419319390cc3b5d9abfc2d0d0b149b3e04a6c9936990129e3e29b579
Status: Downloaded newer image for mongo:latest
docker.io/library/mongo:latest
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker image ls
REPOSITORY   TAG       IMAGE ID       CREATED      SIZE
mongo        latest    4253856b2570   4 days ago   701MB
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker run --name local-mongo -p 27017:27017 -d mongo
83ca54420d38703b6875434c843880cd6406bc3f09f50c9cc0a1a335db366f8c
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker container ls
CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS          PORTS                      NAMES
83ca54420d38   mongo     "docker-entrypoint.s…"   21 seconds ago   Up 17 seconds   0.0.0.0:27017->27017/tcp   local-mongo
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker container logs 83ca54420d38 -f
{"t":{"$date":"2021-11-21T14:57:22.957+00:00"},"s":"I",  "c":"NETWORK",  "id":4915701, "ctx":"thread1","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2021-11-21T14:57:22.958+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"thread1","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-11-21T14:57:22.958+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"thread1","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-11-21T14:57:22.958+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"thread1","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"thread1","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","ns":"config.tenantMigrationDonors"}}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","ns":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"I",  "c":"CONTROL",  "id":5945603, "ctx":"thread1","msg":"Multi threading initialized"}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"I",  "c":"CONTROL",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"83ca54420d38"}}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"5.0.4","gitVersion":"62a84ede3cc9a334e8bc82160714df71e7d3a29e","openSSLVersion":"OpenSSL 1.1.1f  31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2021-11-21T14:57:22.960+00:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}}
{"t":{"$date":"2021-11-21T14:57:22.962+00:00"},"s":"I",  "c":"STORAGE",  "id":22297,   "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
{"t":{"$date":"2021-11-21T14:57:22.962+00:00"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=5828M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2021-11-21T14:57:24.570+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637506644:570897][1:0x7f95ac615c80], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2021-11-21T14:57:24.571+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1637506644:570995][1:0x7f95ac615c80], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2021-11-21T14:57:24.906+00:00"},"s":"I",  "c":"STORAGE",  "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":1944}}
{"t":{"$date":"2021-11-21T14:57:24.906+00:00"},"s":"I",  "c":"RECOVERY", "id":23987,   "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-11-21T14:57:25.914+00:00"},"s":"I",  "c":"STORAGE",  "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
{"t":{"$date":"2021-11-21T14:57:25.915+00:00"},"s":"I",  "c":"STORAGE",  "id":22262,   "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2021-11-21T14:57:26.225+00:00"},"s":"W",  "c":"CONTROL",  "id":22120,   "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2021-11-21T14:57:26.225+00:00"},"s":"W",  "c":"CONTROL",  "id":22178,   "ctx":"initandlisten","msg":"/sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'","tags":["startupWarnings"]}
{"t":{"$date":"2021-11-21T14:57:26.226+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"admin.system.version","uuidDisposition":"provided","uuid":{"uuid":{"$uuid":"4409d458-4f32-470b-ba47-82d13e1e776d"}},"options":{"uuid":{"$uuid":"4409d458-4f32-470b-ba47-82d13e1e776d"}}}}
{"t":{"$date":"2021-11-21T14:57:26.737+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"initandlisten","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"admin.system.version","index":"_id_","commitTimestamp":null}}
{"t":{"$date":"2021-11-21T14:57:26.738+00:00"},"s":"I",  "c":"REPL",     "id":20459,   "ctx":"initandlisten","msg":"Setting featureCompatibilityVersion","attr":{"newVersion":"5.0"}}
{"t":{"$date":"2021-11-21T14:57:26.738+00:00"},"s":"I",  "c":"NETWORK",  "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":13,"maxWireVersion":13},"outgoing":{"minWireVersion":13,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2021-11-21T14:57:26.738+00:00"},"s":"I",  "c":"NETWORK",  "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":13,"maxWireVersion":13},"outgoing":{"minWireVersion":13,"maxWireVersion":13},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":13,"maxWireVersion":13},"outgoing":{"minWireVersion":13,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2021-11-21T14:57:26.738+00:00"},"s":"I",  "c":"STORAGE",  "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"}
{"t":{"$date":"2021-11-21T14:57:26.738+00:00"},"s":"I",  "c":"CONTROL",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2021-11-21T14:57:26.741+00:00"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
{"t":{"$date":"2021-11-21T14:57:26.742+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"local.startup_log","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"52fe7b4d-8dc9-4ab5-b310-61d9cc68b2ca"}},"options":{"capped":true,"size":10485760}}}
{"t":{"$date":"2021-11-21T14:57:27.360+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"initandlisten","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"local.startup_log","index":"_id_","commitTimestamp":null}}
{"t":{"$date":"2021-11-21T14:57:27.360+00:00"},"s":"I",  "c":"REPL",     "id":6015317, "ctx":"initandlisten","msg":"Setting new configuration state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}}
{"t":{"$date":"2021-11-21T14:57:27.362+00:00"},"s":"I",  "c":"CONTROL",  "id":20712,   "ctx":"LogicalSessionCacheReap","msg":"Sessions collection is not set up; waiting until next sessions reap interval","attr":{"error":"NamespaceNotFound: config.system.sessions does not exist"}}
{"t":{"$date":"2021-11-21T14:57:27.362+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"LogicalSessionCacheRefresh","msg":"createCollection","attr":{"namespace":"config.system.sessions","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"7b04219e-ebc2-42e2-b28d-80e341984752"}},"options":{}}}
{"t":{"$date":"2021-11-21T14:57:27.362+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2021-11-21T14:57:27.362+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
{"t":{"$date":"2021-11-21T14:57:27.362+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
{"t":{"$date":"2021-11-21T14:57:28.227+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"config.system.sessions","index":"_id_","commitTimestamp":null}}
{"t":{"$date":"2021-11-21T14:57:28.227+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"config.system.sessions","index":"lsidTTLIndex","commitTimestamp":null}}
{"t":{"$date":"2021-11-21T14:57:28.227+00:00"},"s":"I",  "c":"COMMAND",  "id":51803,   "ctx":"LogicalSessionCacheRefresh","msg":"Slow query","attr":{"type":"command","ns":"config.system.sessions","command":{"createIndexes":"system.sessions","v":2,"indexes":[{"key":{"lastUse":1},"name":"lsidTTLIndex","expireAfterSeconds":1800}],"ignoreUnknownIndexOptions":false,"writeConcern":{},"$db":"config"},"numYields":0,"reslen":114,"locks":{"ParallelBatchWriterMode":{"acquireCount":{"r":4}},"ReplicationStateTransition":{"acquireCount":{"w":4}},"Global":{"acquireCount":{"r":4,"w":1}},"Database":{"acquireCount":{"r":3,"w":1}},"Collection":{"acquireCount":{"r":3,"w":1}},"Mutex":{"acquireCount":{"r":6}}},"storage":{},"protocol":"op_msg","durationMillis":865}}
{"t":{"$date":"2021-11-21T14:58:26.227+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1637506706:227533][1:0x7f95a3e03700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 34, snapshot max: 34 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 1"}}
{"t":{"$date":"2021-11-21T14:59:02.955+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.17.0.1:50532","uuid":"e2f97eee-505b-4fd5-9372-087b9af9a629","connectionId":1,"connectionCount":1}}
{"t":{"$date":"2021-11-21T14:59:03.055+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1","msg":"client metadata","attr":{"remote":"172.17.0.1:50532","client":"conn1","doc":{"application":{"name":"robo3t-1.4.3"},"driver":{"name":"MongoDB Internal Client","version":"4.2.6-18-g6cdb6ab"},"os":{"type":"Windows","name":"Microsoft Windows 8","architecture":"x86_64","version":"6.2 (build 9200)"}}}}
{"t":{"$date":"2021-11-21T14:59:03.169+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.17.0.1:50534","uuid":"bcc529f3-dd0f-424c-984c-d8b90a6b897e","connectionId":2,"connectionCount":2}}
{"t":{"$date":"2021-11-21T14:59:03.178+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn2","msg":"client metadata","attr":{"remote":"172.17.0.1:50534","client":"conn2","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.2.6-18-g6cdb6ab"},"os":{"type":"Windows","name":"Microsoft Windows 8","architecture":"x86_64","version":"6.2 (build 9200)"}}}}
{"t":{"$date":"2021-11-21T14:59:05.895+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn1","msg":"Connection ended","attr":{"remote":"172.17.0.1:50532","uuid":"e2f97eee-505b-4fd5-9372-087b9af9a629","connectionId":1,"connectionCount":1}}
{"t":{"$date":"2021-11-21T14:59:05.933+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn2","msg":"Connection ended","attr":{"remote":"172.17.0.1:50534","uuid":"bcc529f3-dd0f-424c-984c-d8b90a6b897e","connectionId":2,"connectionCount":0}}
{"t":{"$date":"2021-11-21T14:59:09.953+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.17.0.1:50536","uuid":"9d039d6b-10bc-4549-bf31-1074f6536fa5","connectionId":3,"connectionCount":1}}
{"t":{"$date":"2021-11-21T14:59:09.966+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn3","msg":"client metadata","attr":{"remote":"172.17.0.1:50536","client":"conn3","doc":{"application":{"name":"robo3t-1.4.3"},"driver":{"name":"MongoDB Internal Client","version":"4.2.6-18-g6cdb6ab"},"os":{"type":"Windows","name":"Microsoft Windows 8","architecture":"x86_64","version":"6.2 (build 9200)"}}}}
{"t":{"$date":"2021-11-21T14:59:10.064+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.17.0.1:50538","uuid":"25caffe2-deca-45fe-8fa3-97e941c11bf1","connectionId":4,"connectionCount":2}}
{"t":{"$date":"2021-11-21T14:59:10.076+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn4","msg":"client metadata","attr":{"remote":"172.17.0.1:50538","client":"conn4","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.2.6-18-g6cdb6ab"},"os":{"type":"Windows","name":"Microsoft Windows 8","architecture":"x86_64","version":"6.2 (build 9200)"}}}}
{"t":{"$date":"2021-11-21T14:59:26.996+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1637506766:996149][1:0x7f95a3e03700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 37, snapshot max: 37 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 1"}}
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker container ls
CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS         PORTS                      NAMES
83ca54420d38   mongo     "docker-entrypoint.s…"   2 minutes ago   Up 2 minutes   0.0.0.0:27017->27017/tcp   local-mongo
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker container stop 83ca54420d38
83ca54420d38
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker container ls -a
CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS                      PORTS     NAMES
83ca54420d38   mongo     "docker-entrypoint.s…"   3 minutes ago   Exited (0) 29 seconds ago             local-mongo
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker container rm 83ca54420d38
83ca54420d38
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker container ls -a
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker image ls
REPOSITORY   TAG       IMAGE ID       CREATED      SIZE
mongo        latest    4253856b2570   4 days ago   701MB
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker image rm -f 4253856b2570
Untagged: mongo:latest
Untagged: mongo@sha256:cf9f5df5419319390cc3b5d9abfc2d0d0b149b3e04a6c9936990129e3e29b579
Deleted: sha256:4253856b25700502a6ddc7fdb38aa0fe2aa84b4d404e82c9a24b9f791e99367b
Deleted: sha256:87a3cdf15855ffd6548adcc3790812e27d454fa08a4b7c0bc0511d2c8b568de3
Deleted: sha256:c5334cca4b640b6d19dedae9191d4d4428136047e993e939a8df4d4fa9a45991
Deleted: sha256:3b189dde9da7cc38f23f4f9977d0fb580812e55b597ec32dbe1a4844c1d58688
Deleted: sha256:0e40e70049e1c439978b6b42f365e7c82509045af81569318d9d25ca4ae43ac8
Deleted: sha256:e32d56044445e386c117695c522d1b55b4404a67941d15373d927f6ba6ab998c
Deleted: sha256:6a74e1261a8f05a0e160b5576b517a617b1cde61e2e06caf741dc0288ab0f39a
Deleted: sha256:47ef14d94756f01bd1ab6df49c41c0df1653ef7596009418ec45f0b8fbf942eb
Deleted: sha256:d24f1d22ac6c19e32087304f478f921a57bfb717d26a1ec173ad98b892ec189c
Deleted: sha256:8e1fec7b6b6c506a19122cb48d9cffdb7c81dd3122c2cb444db0917a805937ac
Deleted: sha256:9f54eef412758095c8079ac465d494a2872e02e90bf1fb5f12a1641c0d1bb78b
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker image ls
REPOSITORY   TAG       IMAGE ID   CREATED   SIZE
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer> docker image inspect mongo
[]
Error: No such image: mongo
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>
PS C:\Users\developer>









Post a Comment

Previous Post Next Post