From 2cfc4dfc3144faf971cfea3b51234488b5b73eea Mon Sep 17 00:00:00 2001 From: Docker Library Bot Date: Thu, 25 Aug 2022 12:08:48 -0700 Subject: [PATCH] Run update.sh --- cassandra/README.md | 2 +- mongo/README.md | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cassandra/README.md b/cassandra/README.md index 942c01da3..2d999ed3a 100644 --- a/cassandra/README.md +++ b/cassandra/README.md @@ -24,7 +24,7 @@ WARNING: # Supported tags and respective `Dockerfile` links -- [`4.0.5`, `4.0`, `4`, `latest`](https://github.com/docker-library/cassandra/blob/b3332696b4a6a4405ebf95a4c4065543ee1a073d/4.0/Dockerfile) +- [`4.0.6`, `4.0`, `4`, `latest`](https://github.com/docker-library/cassandra/blob/5aa6b7ed7a342c18da796561252677f17d370616/4.0/Dockerfile) - [`3.11.13`, `3.11`, `3`](https://github.com/docker-library/cassandra/blob/1a9d5f3ac97204f71bba86259aa56815f8a7eee7/3.11/Dockerfile) - [`3.0.27`, `3.0`](https://github.com/docker-library/cassandra/blob/9315e4444c9f92b19e3e2d4fbe7c77293f2d33d7/3.0/Dockerfile) diff --git a/mongo/README.md b/mongo/README.md index 4b46e42e5..2b57e4d96 100644 --- a/mongo/README.md +++ b/mongo/README.md @@ -28,27 +28,27 @@ WARNING: ## Simple Tags -- [`6.0.1-focal`, `6.0-focal`, `6-focal`, `focal`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/Dockerfile) +- [`6.0.1-focal`, `6.0-focal`, `6-focal`, `focal`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/6.0/Dockerfile) - [`6.0.1-windowsservercore-ltsc2022`, `6.0-windowsservercore-ltsc2022`, `6-windowsservercore-ltsc2022`, `windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/windowsservercore-ltsc2022/Dockerfile) - [`6.0.1-windowsservercore-1809`, `6.0-windowsservercore-1809`, `6-windowsservercore-1809`, `windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/windowsservercore-1809/Dockerfile) - [`6.0.1-nanoserver-ltsc2022`, `6.0-nanoserver-ltsc2022`, `6-nanoserver-ltsc2022`, `nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/nanoserver-ltsc2022/Dockerfile) - [`6.0.1-nanoserver-1809`, `6.0-nanoserver-1809`, `6-nanoserver-1809`, `nanoserver-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/nanoserver-1809/Dockerfile) -- [`5.0.11-focal`, `5.0-focal`, `5-focal`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/5.0/Dockerfile) +- [`5.0.11-focal`, `5.0-focal`, `5-focal`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/5.0/Dockerfile) - [`5.0.11-windowsservercore-ltsc2022`, `5.0-windowsservercore-ltsc2022`, `5-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/5.0/windows/windowsservercore-ltsc2022/Dockerfile) - [`5.0.11-windowsservercore-1809`, `5.0-windowsservercore-1809`, `5-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/5.0/windows/windowsservercore-1809/Dockerfile) - [`5.0.11-nanoserver-ltsc2022`, `5.0-nanoserver-ltsc2022`, `5-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/52c402d3744a806411b65e5fc843c65a87d8012c/5.0/windows/nanoserver-ltsc2022/Dockerfile) - [`5.0.11-nanoserver-1809`, `5.0-nanoserver-1809`, `5-nanoserver-1809`](https://github.com/docker-library/mongo/blob/52c402d3744a806411b65e5fc843c65a87d8012c/5.0/windows/nanoserver-1809/Dockerfile) -- [`4.4.16-focal`, `4.4-focal`, `4-focal`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.4/Dockerfile) +- [`4.4.16-focal`, `4.4-focal`, `4-focal`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/4.4/Dockerfile) - [`4.4.16-windowsservercore-ltsc2022`, `4.4-windowsservercore-ltsc2022`, `4-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.4/windows/windowsservercore-ltsc2022/Dockerfile) - [`4.4.16-windowsservercore-1809`, `4.4-windowsservercore-1809`, `4-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.4/windows/windowsservercore-1809/Dockerfile) - [`4.4.16-nanoserver-ltsc2022`, `4.4-nanoserver-ltsc2022`, `4-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/fdd183a654dd02dc4459063ccc7c9b3703fc54af/4.4/windows/nanoserver-ltsc2022/Dockerfile) - [`4.4.16-nanoserver-1809`, `4.4-nanoserver-1809`, `4-nanoserver-1809`](https://github.com/docker-library/mongo/blob/fdd183a654dd02dc4459063ccc7c9b3703fc54af/4.4/windows/nanoserver-1809/Dockerfile) -- [`4.2.22-bionic`, `4.2-bionic`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.2/Dockerfile) +- [`4.2.22-bionic`, `4.2-bionic`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/4.2/Dockerfile) - [`4.2.22-windowsservercore-ltsc2022`, `4.2-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.2/windows/windowsservercore-ltsc2022/Dockerfile) - [`4.2.22-windowsservercore-1809`, `4.2-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.2/windows/windowsservercore-1809/Dockerfile) - [`4.2.22-nanoserver-ltsc2022`, `4.2-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/d1db10ce166d2c4236e380995fce7f1472a92f44/4.2/windows/nanoserver-ltsc2022/Dockerfile) - [`4.2.22-nanoserver-1809`, `4.2-nanoserver-1809`](https://github.com/docker-library/mongo/blob/d1db10ce166d2c4236e380995fce7f1472a92f44/4.2/windows/nanoserver-1809/Dockerfile) -- [`4.0.28-xenial`, `4.0-xenial`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.0/Dockerfile) +- [`4.0.28-xenial`, `4.0-xenial`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/4.0/Dockerfile) - [`4.0.28-windowsservercore-ltsc2022`, `4.0-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.0/windows/windowsservercore-ltsc2022/Dockerfile) - [`4.0.28-windowsservercore-1809`, `4.0-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.0/windows/windowsservercore-1809/Dockerfile) - [`4.0.28-nanoserver-ltsc2022`, `4.0-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/6f8fe0cc9b34501014d98834e386889facf6e392/4.0/windows/nanoserver-ltsc2022/Dockerfile) @@ -57,7 +57,7 @@ WARNING: ## Shared Tags - `6.0.1`, `6.0`, `6`, `latest`: - - [`6.0.1-focal`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/Dockerfile) + - [`6.0.1-focal`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/6.0/Dockerfile) - [`6.0.1-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/windowsservercore-ltsc2022/Dockerfile) - [`6.0.1-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/windowsservercore-1809/Dockerfile) - `6.0.1-windowsservercore`, `6.0-windowsservercore`, `6-windowsservercore`, `windowsservercore`: @@ -67,7 +67,7 @@ WARNING: - [`6.0.1-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/nanoserver-ltsc2022/Dockerfile) - [`6.0.1-nanoserver-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/6.0/windows/nanoserver-1809/Dockerfile) - `5.0.11`, `5.0`, `5`: - - [`5.0.11-focal`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/5.0/Dockerfile) + - [`5.0.11-focal`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/5.0/Dockerfile) - [`5.0.11-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/5.0/windows/windowsservercore-ltsc2022/Dockerfile) - [`5.0.11-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/5.0/windows/windowsservercore-1809/Dockerfile) - `5.0.11-windowsservercore`, `5.0-windowsservercore`, `5-windowsservercore`: @@ -77,7 +77,7 @@ WARNING: - [`5.0.11-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/52c402d3744a806411b65e5fc843c65a87d8012c/5.0/windows/nanoserver-ltsc2022/Dockerfile) - [`5.0.11-nanoserver-1809`](https://github.com/docker-library/mongo/blob/52c402d3744a806411b65e5fc843c65a87d8012c/5.0/windows/nanoserver-1809/Dockerfile) - `4.4.16`, `4.4`, `4`: - - [`4.4.16-focal`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.4/Dockerfile) + - [`4.4.16-focal`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/4.4/Dockerfile) - [`4.4.16-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.4/windows/windowsservercore-ltsc2022/Dockerfile) - [`4.4.16-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.4/windows/windowsservercore-1809/Dockerfile) - `4.4.16-windowsservercore`, `4.4-windowsservercore`, `4-windowsservercore`: @@ -87,7 +87,7 @@ WARNING: - [`4.4.16-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/fdd183a654dd02dc4459063ccc7c9b3703fc54af/4.4/windows/nanoserver-ltsc2022/Dockerfile) - [`4.4.16-nanoserver-1809`](https://github.com/docker-library/mongo/blob/fdd183a654dd02dc4459063ccc7c9b3703fc54af/4.4/windows/nanoserver-1809/Dockerfile) - `4.2.22`, `4.2`: - - [`4.2.22-bionic`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.2/Dockerfile) + - [`4.2.22-bionic`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/4.2/Dockerfile) - [`4.2.22-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.2/windows/windowsservercore-ltsc2022/Dockerfile) - [`4.2.22-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.2/windows/windowsservercore-1809/Dockerfile) - `4.2.22-windowsservercore`, `4.2-windowsservercore`: @@ -97,7 +97,7 @@ WARNING: - [`4.2.22-nanoserver-ltsc2022`](https://github.com/docker-library/mongo/blob/d1db10ce166d2c4236e380995fce7f1472a92f44/4.2/windows/nanoserver-ltsc2022/Dockerfile) - [`4.2.22-nanoserver-1809`](https://github.com/docker-library/mongo/blob/d1db10ce166d2c4236e380995fce7f1472a92f44/4.2/windows/nanoserver-1809/Dockerfile) - `4.0.28`, `4.0`: - - [`4.0.28-xenial`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.0/Dockerfile) + - [`4.0.28-xenial`](https://github.com/docker-library/mongo/blob/9631e54a2885018f440e8da2840c21793c156f94/4.0/Dockerfile) - [`4.0.28-windowsservercore-ltsc2022`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.0/windows/windowsservercore-ltsc2022/Dockerfile) - [`4.0.28-windowsservercore-1809`](https://github.com/docker-library/mongo/blob/06b403b869fc79cf176561a47e5ccebf97a42bad/4.0/windows/windowsservercore-1809/Dockerfile) - `4.0.28-windowsservercore`, `4.0-windowsservercore`: @@ -148,10 +148,10 @@ $ docker run --name some-mongo -d mongo:tag ## Connect to MongoDB from another Docker container -The MongoDB server in the image listens on the standard MongoDB port, `27017`, so connecting via Docker networks will be the same as connecting to a remote `mongod`. The following example starts another MongoDB container instance and runs the `mongo` command line client against the original MongoDB container from the example above, allowing you to execute MongoDB statements against your database instance: +The MongoDB server in the image listens on the standard MongoDB port, `27017`, so connecting via Docker networks will be the same as connecting to a remote `mongod`. The following example starts another MongoDB container instance and runs the `mongosh` (use `mongo` with `4.x` versions) command line client against the original MongoDB container from the example above, allowing you to execute MongoDB statements against your database instance: ```console -$ docker run -it --network some-network --rm mongo mongo --host some-mongo test +$ docker run -it --network some-network --rm mongo mongosh --host some-mongo test ``` ... where `some-mongo` is the name of your original `mongo` container. @@ -260,7 +260,7 @@ When you start the `mongo` image, you can adjust the initialization of the Mongo These variables, used in conjunction, create a new user and set that user's password. This user is created in the `admin` [authentication database](https://docs.mongodb.com/manual/core/security-users/#user-authentication-database) and given [the role of `root`](https://docs.mongodb.com/manual/reference/built-in-roles/#root), which is [a "superuser" role](https://docs.mongodb.com/manual/core/security-built-in-roles/#superuser-roles). -The following is an example of using these two variables to create a MongoDB instance and then using the `mongo` cli to connect against the `admin` authentication database. +The following is an example of using these two variables to create a MongoDB instance and then using the `mongosh` cli (use `mongo` with `4.x` versions) to connect against the `admin` authentication database. ```console $ docker run -d --network some-network --name some-mongo \ @@ -269,7 +269,7 @@ $ docker run -d --network some-network --name some-mongo \ mongo $ docker run -it --rm --network some-network mongo \ - mongo --host some-mongo \ + mongosh --host some-mongo \ -u mongoadmin \ -p secret \ --authenticationDatabase admin \ @@ -298,7 +298,7 @@ Currently, this is only supported for `MONGO_INITDB_ROOT_USERNAME` and `MONGO_IN # Initializing a fresh instance -When a container is started for the first time it will execute files with extensions `.sh` and `.js` that are found in `/docker-entrypoint-initdb.d`. Files will be executed in alphabetical order. `.js` files will be executed by `mongo` using the database specified by the `MONGO_INITDB_DATABASE` variable, if it is present, or `test` otherwise. You may also switch databases within the `.js` script. +When a container is started for the first time it will execute files with extensions `.sh` and `.js` that are found in `/docker-entrypoint-initdb.d`. Files will be executed in alphabetical order. `.js` files will be executed by `mongosh` (`mongo` on versions below 6) using the database specified by the `MONGO_INITDB_DATABASE` variable, if it is present, or `test` otherwise. You may also switch databases within the `.js` script. # Authentication