Namespace
library
Image / Tag
mongo:4.4.29
Content Digest
sha256:52c42cbab240b3c5b1748582cc13ef46d521ddacae002bbbda645cebed270ec0
Details
Created

2024-02-29 23:25:19 UTC

Size

165 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • org.opencontainers.image.version
    20.04

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

4.4

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

4.4.29

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Layers

[#000] sha256:d4c3c94e5e10ed15503bda7e145a3652ee935c0b2e9de9b5c98df7ec0a0cd925 - 15.9% (26.2 MB)

[#001] sha256:bca5893fe8bdc25a089e22b71c9eba4c4caddc2716492b7538cd58f6e72e96bf - 0.0% (1.73 KB)

[#002] sha256:35ec036951f88ecb3bc69eea3612ec24beda933ff8ede4bfb552c6bb44ce0151 - 1.78% (2.93 MB)

[#003] sha256:ddb77a597b021b398c08c4d6b5c6df11a092d06fb01305eb7e5a5d9b9f3a5de9 - 0.63% (1.04 MB)

[#004] sha256:7ab9eb5a4d9d4350a002dd45439f12cdb39f0187eb66447c2922097f81e4ce61 - 0.0% (116 Bytes)

[#005] sha256:a6c1ba219414911323f7af1a947f25a08b83a3f7d347f5214cc08d2a308a6631 - 0.0% (258 Bytes)

[#006] sha256:83b651df5384f3bf533a197296a25f6909c62e2c83cec73f71060f8cc55224fa - 81.69% (135 MB)

[#007] sha256:e233f2d1b360482f5cc34ee490c3a29cf3d3c066d1229d2bbe9040d6eae0fd10 - 0.0% (4.88 KB)


History
2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) ARG RELEASE

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.version=20.04

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) ADD file:e5742fae181dc02a419e48d202fdd6a561b79ccbe7d3415e15e3d2c12e444a2a in /

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) CMD ["/bin/bash"]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd --gid 999 --system mongodb; useradd --uid 999 --system --gid mongodb --home-dir /data/db mongodb; mkdir -p /data/db /data/configdb; chown -R mongodb:mongodb /data/db /data/configdb # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates jq numactl procps ; rm -rf /var/lib/apt/lists/* # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg wget ; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; mkdir -p /opt/js-yaml/; wget -O /opt/js-yaml/js-yaml.js "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/dist/js-yaml.js"; wget -O /opt/js-yaml/package.json "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/package.json"; ln -s /opt/js-yaml/js-yaml.js /js-yaml.js; export GNUPGHOME="$(mktemp -d)"; wget -O KEYS 'https://pgp.mongodb.com/server-4.4.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '20691EEC35216C63CAF66CE1656408E390CFB1F5' > /etc/apt/keyrings/mongodb.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" KEYS; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=4.4

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu focal/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=4.4.29

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c set -x && export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ${MONGO_PACKAGE}=$MONGO_VERSION ${MONGO_PACKAGE}-server=$MONGO_VERSION ${MONGO_PACKAGE}-shell=$MONGO_VERSION ${MONGO_PACKAGE}-mongos=$MONGO_VERSION ${MONGO_PACKAGE}-tools=$MONGO_VERSION && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2024-04-10 00:02:39 UTC

Size

2.09 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

1b4803a76653736297a96a6232774d0ce869162797ee7b628dfaecac9b36d3b5

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.29-signed.msi

MONGO_VERSION

4.4.29


Layers

[#000] sha256:7c76e5cf7755ce357ffb737715b0da6799a50ea468cc252c094f4d915d426b3f - 61.83% (1.29 GB)

[#001] sha256:197484daab96ebaf9683bc9230fb0043a8780d2afef249baa386f372a548b76a - 27.2% (582 MB)

[#002] sha256:0d6b6caede0e5dae44215745fc994281ac33b567a6b0cb4faba30230e62fc456 - 0.0% (1.27 KB)

[#003] sha256:985277152e59b7c0f9855d4c795b73a93077c9bee6231bc6beae66bfe1dc4da8 - 0.0% (1.26 KB)

[#004] sha256:5a0ff079f893d3d87809c4a56211f9a9cbc6f689cb867b770d4a224882483148 - 0.0% (1.27 KB)

[#005] sha256:10f369bbb888fded50f488a2d3f84e229e8cf8635c322e445605b5052d5a0b3d - 0.0% (1.27 KB)

[#006] sha256:f3c95d78b0eabf7287ab9edf0bcaa8eb526fe0898ca5bf57ecb25e19e16c4cbf - 10.98% (235 MB)

[#007] sha256:9652980739eecc1860554ad1a60826bca64a6213bae6d67ee83c6bb84a13607a - 0.0% (1.26 KB)

[#008] sha256:bfd8ef057427519d8c14bd104d33657d2ef08818119f910aeac89074ecc03ef1 - 0.0% (1.27 KB)

[#009] sha256:aef37f4127a40281ae875512fbfeb57d48b7d0889ac57be24e0d854bd6d7337f - 0.0% (1.26 KB)


History
2023-06-08 12:55:20 UTC

Apply image 10.0.20348.1787

2024-04-05 09:25:01 UTC

Install update 10.0.20348.2402

2024-04-10 00:01:45 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]

2024-04-10 00:01:46 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.4.29

2024-04-10 00:01:47 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.29-signed.msi

2024-04-10 00:01:48 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=1b4803a76653736297a96a6232774d0ce869162797ee7b628dfaecac9b36d3b5

2024-04-10 00:02:33 UTC

powershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); if ($env:MONGO_DOWNLOAD_SHA256) { Write-Host ('Verifying sha256 ({0}) ...' -f $env:MONGO_DOWNLOAD_SHA256); if ((Get-FileHash mongo.msi -Algorithm sha256).Hash -ne $env:MONGO_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; }; Write-Host 'Installing ...'; Start-Process msiexec -Wait -ArgumentList @( '/i', 'mongo.msi', '/quiet', '/qn', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongo --version'; mongo --version; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2024-04-10 00:02:36 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]

2024-04-10 00:02:38 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017

2024-04-10 00:02:39 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]

Details
Created

2024-04-10 00:01:37 UTC

Size

2.25 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

1b4803a76653736297a96a6232774d0ce869162797ee7b628dfaecac9b36d3b5

MONGO_DOWNLOAD_URL

https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.29-signed.msi

MONGO_VERSION

4.4.29


Layers

[#000] sha256:c9226d61d3bdbf9f09821b32f5878623b8daaa5fb4f875cb63c199f87a26d57e - 68.46% (1.54 GB)

[#001] sha256:e920b78002850882cc637991bf16e3cd3fdd45576cf3e930819c98f6b43518d3 - 21.31% (490 MB)

[#002] sha256:856220153496aced4edc907222e45dc3ffd80b991ecd8f73e20c69f35746a31d - 0.0% (1.27 KB)

[#003] sha256:6b1a668bb4a5be2eb546e10d5763a5c70340bdcff0a9be6f491f617e46e81309 - 0.0% (1.26 KB)

[#004] sha256:244ac00ea6cb2e5275c309b7f74abe618286fd165f35b445ff57bdeb1cf76148 - 0.0% (1.27 KB)

[#005] sha256:478667a541aab015187507cb780e9a0e9da716d0475b60334851112274a7267f - 0.0% (1.27 KB)

[#006] sha256:179f7ea6d1c97cdd2dbfcfd0b7998c0c1825daf4cb17263c9875a37e09346b22 - 10.23% (235 MB)

[#007] sha256:fd471d5dcdcafb109423e302141f334b7f5708b7a36ab3599eb8c104673f1aae - 0.0% (1.27 KB)

[#008] sha256:09cb3d95a7c2d4bf401bb9fb3c55e82ad47fb9febdf11455e935412147ad6dd8 - 0.0% (1.27 KB)

[#009] sha256:7065eb60c31734be877b41fc445ed3bf0d1fcc06363298fbeebde3e9356150bb - 0.0% (1.28 KB)


History
2023-06-08 12:58:24 UTC

Apply image 10.0.17763.4499

2024-04-06 02:39:33 UTC

Install update 10.0.17763.5696

2024-04-10 00:00:17 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]

2024-04-10 00:00:18 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=4.4.29

2024-04-10 00:00:19 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.29-signed.msi

2024-04-10 00:00:20 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=1b4803a76653736297a96a6232774d0ce869162797ee7b628dfaecac9b36d3b5

2024-04-10 00:01:32 UTC

powershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); if ($env:MONGO_DOWNLOAD_SHA256) { Write-Host ('Verifying sha256 ({0}) ...' -f $env:MONGO_DOWNLOAD_SHA256); if ((Get-FileHash mongo.msi -Algorithm sha256).Hash -ne $env:MONGO_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; }; Write-Host 'Installing ...'; Start-Process msiexec -Wait -ArgumentList @( '/i', 'mongo.msi', '/quiet', '/qn', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=Client,MiscellaneousTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongo --version'; mongo --version; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2024-04-10 00:01:35 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]

2024-04-10 00:01:37 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017

2024-04-10 00:01:37 UTC

powershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]

Details
Created

2024-02-29 23:25:19 UTC

Size

161 MB

Content Digest
Labels
  • org.opencontainers.image.ref.name
    ubuntu
  • org.opencontainers.image.version
    20.04

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

4.4

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

4.4.29

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Layers

[#000] sha256:d7044108e6d4d8b24ea68c7ee675f78cb56d959d0878b78c97e8ca7c6b5fa2cc - 15.43% (24.8 MB)

[#001] sha256:001b287048bd171c71db091a9a875d56c42a0df27302047ddc31d8fd21aaf6c6 - 0.0% (1.74 KB)

[#002] sha256:1dff8d23fd24b1d9bf65945df348665b3c662189fd1d17a4e13798d9e3ee6eb8 - 1.74% (2.79 MB)

[#003] sha256:ff1737f9e3a79ebed9b2fedf56c3948833936e853c231d97c5fbfd6e73650267 - 0.61% (1000 KB)

[#004] sha256:11a98d2a6710d55fbd9233f36249358534517a4e6ed2fd99b42f8df7aeaf6a2e - 0.0% (116 Bytes)

[#005] sha256:b02d9073ec97f81d5e643c56493b789b4e6f187701861ef266be2f034a30d140 - 0.0% (259 Bytes)

[#006] sha256:43f280ad780e61451a701d16a07413fd0521d25975cfbdb42aed072b0906932c - 82.21% (132 MB)

[#007] sha256:ba79d65b2323263638bda993c444417f6871c9211be767211092729dbc319e2d - 0.0% (4.88 KB)


History
2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) ARG RELEASE

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) LABEL org.opencontainers.image.version=20.04

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) ADD file:d1a4a31f5a3aea1e130c7e173da2ed506ba19e91be74ab9700d398774d0ace22 in /

2024-02-29 23:25:19 UTC

/bin/sh -c #(nop) CMD ["/bin/bash"]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd --gid 999 --system mongodb; useradd --uid 999 --system --gid mongodb --home-dir /data/db mongodb; mkdir -p /data/db /data/configdb; chown -R mongodb:mongodb /data/db /data/configdb # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates jq numactl procps ; rm -rf /var/lib/apt/lists/* # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg wget ; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; mkdir -p /opt/js-yaml/; wget -O /opt/js-yaml/js-yaml.js "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/dist/js-yaml.js"; wget -O /opt/js-yaml/package.json "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/package.json"; ln -s /opt/js-yaml/js-yaml.js /js-yaml.js; export GNUPGHOME="$(mktemp -d)"; wget -O KEYS 'https://pgp.mongodb.com/server-4.4.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor '20691EEC35216C63CAF66CE1656408E390CFB1F5' > /etc/apt/keyrings/mongodb.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" KEYS; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=4.4

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu focal/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=4.4.29

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c set -x && export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y ${MONGO_PACKAGE}=$MONGO_VERSION ${MONGO_PACKAGE}-server=$MONGO_VERSION ${MONGO_PACKAGE}-shell=$MONGO_VERSION ${MONGO_PACKAGE}-mongos=$MONGO_VERSION ${MONGO_PACKAGE}-tools=$MONGO_VERSION && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-02-29 23:25:19 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete