Namespace
library
Image / Tag
mongo:7.0.5
Content Digest
sha256:5a54d0323fe207d15dc48773a7b9e7e519f83ad94a19c2ddac201d7aae109eb1
Details
Created

2024-02-07 00:59:03 UTC

Size

246 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.5

PATH

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


Layers

[#000] sha256:01007420e9b005dc14a8c8b0f996a2ad8e0d4af6c3d01e62f123be14fe48eec7 - 11.44% (28.2 MB)

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

[#002] sha256:c5db81b694a822fe777a3381ca09286e469bb38d5d4155bf576b559919062fe8 - 0.58% (1.43 MB)

[#003] sha256:427a1a117df0119d24b1e60761494bd5445f366399194c0649c3cac69c90192b - 0.42% (1.04 MB)

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

[#005] sha256:92e6f08e133c083169d361c9ff6cc086d4b96df1741181d2c2e6c57187955c16 - 0.0% (261 Bytes)

[#006] sha256:374f042f3159bf1ec10f6b608d853243c19b1203de03e06d61e404419f69d6d3 - 87.55% (215 MB)

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


History
2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 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-07 00:59:03 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-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

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

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

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

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2024-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.5

2024-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

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

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

CMD ["mongod"]

Details
Created

2024-02-14 20:11:20 UTC

Size

2.35 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

96441addde451b9d81dfaa10aca9678ada35d17d02a9a07481c6137d3df55e2b

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.5


Layers

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

[#001] sha256:855fa6b82f2f8fea22646f0d4aa228ea8cbb8bc562afd14a163a8f3d0eb010e1 - 20.69% (498 MB)

[#002] sha256:4bd1aafe5afc35e1a536dd16bba39ecb608cfadd3c8d6ab25222b9c99d5f5c4d - 0.0% (1.26 KB)

[#003] sha256:1b0a7ee41cadb58a72bbb45dc1fd01c1b6854c2d3536b3efb5642fef6ed35938 - 0.0% (1.26 KB)

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

[#005] sha256:a426e2745212d1a6fe0757d1e71a15f47aad5be0702276369e96115ced8b4e62 - 0.0% (1.26 KB)

[#006] sha256:658fcd8af4c24f5699b20c1c5681826155df53c259780d332a71f6342af583af - 24.29% (584 MB)

[#007] sha256:516f78c4cb2d6dde2c7fc0de2376f35cb544b8cce46b249753158072e4c14295 - 0.0% (1.26 KB)

[#008] sha256:546be78493fef5c4f80982610096637ac26399020d8d20347e74349b7d576b8a - 0.0% (1.26 KB)

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


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

Apply image 10.0.20348.1787

2024-02-07 06:55:59 UTC

Install update 10.0.20348.2322

2024-02-14 20:09:02 UTC

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

2024-02-14 20:09:03 UTC

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

2024-02-14 20:09:04 UTC

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

2024-02-14 20:09:05 UTC

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

2024-02-14 20:11:15 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-02-14 20:11:17 UTC

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

2024-02-14 20:11:19 UTC

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

2024-02-14 20:11:20 UTC

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

Details
Created

2024-02-14 20:01:28 UTC

Size

2.51 GB

Content Digest
Environment
MONGO_DOWNLOAD_SHA256

96441addde451b9d81dfaa10aca9678ada35d17d02a9a07481c6137d3df55e2b

MONGO_DOWNLOAD_URL

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

MONGO_VERSION

7.0.5


Layers

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

[#001] sha256:dda007680e5cddfaf6f5428f70f8c514ac0b9dd099972b7d475cce4c5c899558 - 15.96% (410 MB)

[#002] sha256:81933a922996d262b42c6fe75e2abda32e9ae780b8047d43cad13fb644857704 - 0.0% (1.3 KB)

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

[#004] sha256:68dbd33c762d299e7b6817b74a985faae7ceb3a97237fd93d2416466f96330ce - 0.0% (1.26 KB)

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

[#006] sha256:d4ae243294025b514033905e153dcf217672a96605d77e864d2d303805ba1746 - 22.76% (585 MB)

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

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

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


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

Apply image 10.0.17763.4499

2024-02-04 04:14:09 UTC

Install update 10.0.17763.5458

2024-02-14 19:59:23 UTC

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

2024-02-14 19:59:24 UTC

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

2024-02-14 19:59:24 UTC

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

2024-02-14 19:59:25 UTC

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

2024-02-14 20:01:22 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-02-14 20:01:25 UTC

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

2024-02-14 20:01:27 UTC

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

2024-02-14 20:01:28 UTC

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

Details
Created

2024-02-07 00:59:03 UTC

Size

238 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.5

PATH

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


Layers

[#000] sha256:a4a2c7a57ed8b997579870d0927433b03cfd94f5dba2153bdbcd885b5d620035 - 10.94% (26.1 MB)

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

[#002] sha256:20a94d566154f568d8d3806d6f82aeec09ecd0408a9db227eceeb6849c9ead90 - 0.59% (1.4 MB)

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

[#004] sha256:51d926c33a8021648a6ee91c79b9743e0c4b7824f0e4abfd2d086fa58e86b389 - 0.0% (116 Bytes)

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

[#006] sha256:db6ffb85f76eaccdfedf8ddf6f80fb6cf54d1f86cc0e4513f8fbe06770238102 - 88.06% (210 MB)

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


History
2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 UTC

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

2024-02-07 00:59:03 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-07 00:59:03 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-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV JSYAML_VERSION=3.13.1

2024-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

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

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ARG MONGO_PACKAGE=mongodb-org

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ARG MONGO_REPO=repo.mongodb.org

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

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

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV MONGO_MAJOR=7.0

2024-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV MONGO_VERSION=7.0.5

2024-02-07 00:59:03 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-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

VOLUME [/data/db /data/configdb]

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENV HOME=/data/db

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

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

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-02-07 00:59:03 UTC (buildkit.dockerfile.v0)

EXPOSE map[27017/tcp:{}]

2024-02-07 00:59:03 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