Namespace
library
Image / Tag
mongo:7.0.7
Content Digest
sha256:0e145625e78b94224d16222ff2609c4621ff6e2c390300e4e6bf698305596792
Details
Created

2024-03-18 16:01:38 UTC

Size

249 MB

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

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

7.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

7.0.7

PATH

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


Layers

[#000] sha256:bccd10f490ab0f3fba61b193d1b80af91b17ca9bdca9768a16ed05ce16552fcb - 11.3% (28.2 MB)

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

[#002] sha256:a1f43ab851519ac42130b6e1030d805dd26ca2f874537117b5dd87ea1ac4c48d - 0.57% (1.43 MB)

[#003] sha256:9e72f6a5998ab06d09eb8b92b5244b4ed1fcbd8cd5c8b44171afb5542e27b984 - 0.42% (1.04 MB)

[#004] sha256:8424336879e4960f5c1e39ee1406d6adfb841c1446adc56b782886ed1698f003 - 0.0% (116 Bytes)

[#005] sha256:85a6d3c2e6c8f25edb0b829f34434e5db0184545a43e035d32ae6f3b2035bc9b - 0.0% (263 Bytes)

[#006] sha256:c533c21e5fb8b41a6144ab7e498d522954e752c02af9c741d523073db4fc34d9 - 87.71% (219 MB)

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


History
2024-02-27 18:52:57 UTC

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

2024-02-27 18:52:57 UTC

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

2024-02-27 18:52:57 UTC

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

2024-02-27 18:52:57 UTC

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

2024-02-27 18:52:58 UTC

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

2024-02-27 18:52:59 UTC

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

2024-03-18 16:01:38 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-03-18 16:01:38 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-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-03-18 16:01:38 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-7.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor 'E58830201F7DD82CD808AA84160D26BB1785BA38' > /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-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

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

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

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

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2024-03-18 16:01:38 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 jammy/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.7

2024-03-18 16:01:38 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 ${MONGO_PACKAGE}-database=$MONGO_VERSION ${MONGO_PACKAGE}-database-tools-extra=$MONGO_VERSION && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

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

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2024-03-18 18:59:46 UTC

Size

2.4 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

bc2b37ac25858986b053b5f2f829810c4e4d7617d3c3d6f9b5c443e087294a85

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.7


Layers

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

[#001] sha256:a61557bf66429be9509f579104808d2853f8f7aefbd49ef26f5f2a90266c46f5 - 22.09% (543 MB)

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

[#003] sha256:45dfdb49368e8172345f1b88bb6a4264ea559e0131f999d191513d8c96a0b179 - 0.0% (1.26 KB)

[#004] sha256:87c04511e7f4ce5d1a4cabba6a68ab8dca747ac3ebeec15c14d1987dbd8dde21 - 0.0% (1.26 KB)

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

[#006] sha256:1f28de1631cc93f965d81dbd101bf0608fab2139edc26dda2f6925c17b689dfd - 23.99% (589 MB)

[#007] sha256:f06c3aed1a11a91b23f32586155411cf584ad5f7a988997fd7c92d2ff2d99c92 - 0.0% (1.29 KB)

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

[#009] sha256:2c5ddbbbf78c847d421985e3bf699062b263cb79db8f97ca6bdcf484644f956f - 0.0% (1.29 KB)


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

Apply image 10.0.20348.1787

2024-03-05 19:55:40 UTC

Install update 10.0.20348.2340

2024-03-18 18:57:47 UTC

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

2024-03-18 18:57:48 UTC

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

2024-03-18 18:57:48 UTC

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

2024-03-18 18:57:49 UTC

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

2024-03-18 18:59:43 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=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 ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2024-03-18 18:59:44 UTC

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

2024-03-18 18:59:45 UTC

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

2024-03-18 18:59:46 UTC

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

Details
Created

2024-03-18 19:02:50 UTC

Size

2.55 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

bc2b37ac25858986b053b5f2f829810c4e4d7617d3c3d6f9b5c443e087294a85

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.7


Layers

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

[#001] sha256:a22a88a4a0d197cb745939f382a7898094af0a089fce3173f283651a01da996b - 17.3% (452 MB)

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

[#003] sha256:a5d6a1421abe511174d1cbe09d364d919a2ac37f89d55ab2dd286f0a4705cb68 - 0.0% (1.27 KB)

[#004] sha256:458de37b63992a32b9f7a4dc4f7a888e2d3eb30c918fa8d04c7ed80e95a53d25 - 0.0% (1.28 KB)

[#005] sha256:221c6d9e990d07d029c772223654b865958b2c7cdc4f128ef5af7774846eeed5 - 0.0% (1.27 KB)

[#006] sha256:57c59691ba71318ed8470bfc61aa79d461a7fd4227a3458d99f42a42f2f1980c - 22.52% (589 MB)

[#007] sha256:65cd414807210c95b8076b807bbc1586c5615030ca20635d17f08137abd9bfb2 - 0.0% (1.26 KB)

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

[#009] sha256:e7a191a425f4ae041ebc619e70f428b64e3a40856e2e0a8dc8e6c6690eb37a25 - 0.0% (1.27 KB)


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

Apply image 10.0.17763.4499

2024-03-04 01:18:21 UTC

Install update 10.0.17763.5576

2024-03-18 19:00:45 UTC

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

2024-03-18 19:00:46 UTC

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

2024-03-18 19:00:46 UTC

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

2024-03-18 19:00:47 UTC

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

2024-03-18 19:02:47 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=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 ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';

2024-03-18 19:02:48 UTC

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

2024-03-18 19:02:49 UTC

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

2024-03-18 19:02:50 UTC

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

Details
Created

2024-03-18 16:01:38 UTC

Size

242 MB

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

Environment
GOSU_VERSION

1.17

HOME

/data/db

JSYAML_VERSION

3.13.1

MONGO_MAJOR

7.0

MONGO_PACKAGE

mongodb-org

MONGO_REPO

repo.mongodb.org

MONGO_VERSION

7.0.7

PATH

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


Layers

[#000] sha256:f4bb4e8dca02be491b4f72d2ef2127a64ce49c48d0d9c0a0fcaffa625067679d - 10.8% (26.1 MB)

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

[#002] sha256:8d310f328ae06be202e6c074df5e8ccf467ef34a7167b47f0d408d0ea70b6a44 - 0.58% (1.4 MB)

[#003] sha256:c6688fa40c23ff36e90f3fc306fbd3b7a6c9ab594bef76fd7b2a7b95b73202df - 0.41% (1000 KB)

[#004] sha256:9ed5465e8998f674efa29cb64907336cd6669dc7c8468953e3d2b59cabf59a7e - 0.0% (116 Bytes)

[#005] sha256:eaefe376ac3e126cd19d0b24976dcceb6f13ce301e1ed1029a293f44152c5983 - 0.0% (266 Bytes)

[#006] sha256:fd1c2d163a680757fede5966de78209392beecfaabf3a6aee09cd3a5e0b10b1c - 88.22% (213 MB)

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


History
2024-02-27 18:53:22 UTC

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

2024-02-27 18:53:22 UTC

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

2024-02-27 18:53:22 UTC

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

2024-02-27 18:53:22 UTC

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

2024-02-27 18:53:25 UTC

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

2024-02-27 18:53:25 UTC

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

2024-03-18 16:01:38 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-03-18 16:01:38 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-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-03-18 16:01:38 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-7.0.asc'; gpg --batch --import KEYS; mkdir -p /etc/apt/keyrings; gpg --batch --export --armor 'E58830201F7DD82CD808AA84160D26BB1785BA38' > /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-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

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

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

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

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2024-03-18 16:01:38 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 jammy/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.7

2024-03-18 16:01:38 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 ${MONGO_PACKAGE}-database=$MONGO_VERSION ${MONGO_PACKAGE}-database-tools-extra=$MONGO_VERSION && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/mongodb && mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

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

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-03-18 16:01:38 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-03-18 16:01:38 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