Dockerfile 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. #基础镜像
  2. FROM mongo:6.0.8
  3. #容器内根:/mnt
  4. WORKDIR /mnt
  5. #配置文件
  6. #解决中文乱码问题
  7. #ENV LANG C.UTF-8
  8. #ENV LANGUAGE zh_CN.UTF-8
  9. #ENV LC_ALL C.UTF-8
  10. #ENV TZ Asia/Shanghai
  11. #其他沿用
  12. #docker inspect,这段信息别动
  13. #[
  14. # {
  15. # "Id": "sha256:fb5fba25b25a267c90549346e49e6d76211eae5bf4ac6943c49eac4d30862232",
  16. # "RepoTags": [
  17. # "mongo:latest"
  18. # ],
  19. # "RepoDigests": [
  20. # "mongo@sha256:20f3adcaffe2193e49dd502c8299b770d49a1e0643e0e9db250d5c127b1e9ed8"
  21. # ],
  22. # "Parent": "",
  23. # "Comment": "",
  24. # "Created": "2023-07-14T00:20:54.232887388Z",
  25. # "Container": "6f6751acec49f7aada0e8472afd86da43f9a55e3ded0d034187f023a326d9c4d",
  26. # "ContainerConfig": {
  27. # "Hostname": "6f6751acec49",
  28. # "Domainname": "",
  29. # "User": "",
  30. # "AttachStdin": false,
  31. # "AttachStdout": false,
  32. # "AttachStderr": false,
  33. # "ExposedPorts": {
  34. # "27017/tcp": {}
  35. # },
  36. # "Tty": false,
  37. # "OpenStdin": false,
  38. # "StdinOnce": false,
  39. # "Env": [
  40. # "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  41. # "GOSU_VERSION=1.16",
  42. # "JSYAML_VERSION=3.13.1",
  43. # "MONGO_PACKAGE=mongodb-org",
  44. # "MONGO_REPO=repo.mongodb.org",
  45. # "MONGO_MAJOR=6.0",
  46. # "MONGO_VERSION=6.0.8",
  47. # "HOME=/data/db"
  48. # ],
  49. # "Cmd": [
  50. # "/bin/sh",
  51. # "-c",
  52. # "#(nop) ",
  53. # "CMD [\"mongod\"]"
  54. # ],
  55. # "Image": "sha256:55e57b9922dce10fd72845f4a795b63b99d341564a4abb37a3d78a9e98db3dd7",
  56. # "Volumes": {
  57. # "/data/configdb": {},
  58. # "/data/db": {}
  59. # },
  60. # "WorkingDir": "",
  61. # "Entrypoint": [
  62. # "docker-entrypoint.sh"
  63. # ],
  64. # "OnBuild": null,
  65. # "Labels": {
  66. # "org.opencontainers.image.ref.name": "ubuntu",
  67. # "org.opencontainers.image.version": "22.04"
  68. # }
  69. # },
  70. # "DockerVersion": "20.10.23",
  71. # "Author": "",
  72. # "Config": {
  73. # "Hostname": "",
  74. # "Domainname": "",
  75. # "User": "",
  76. # "AttachStdin": false,
  77. # "AttachStdout": false,
  78. # "AttachStderr": false,
  79. # "ExposedPorts": {
  80. # "27017/tcp": {}
  81. # },
  82. # "Tty": false,
  83. # "OpenStdin": false,
  84. # "StdinOnce": false,
  85. # "Env": [
  86. # "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  87. # "GOSU_VERSION=1.16",
  88. # "JSYAML_VERSION=3.13.1",
  89. # "MONGO_PACKAGE=mongodb-org",
  90. # "MONGO_REPO=repo.mongodb.org",
  91. # "MONGO_MAJOR=6.0",
  92. # "MONGO_VERSION=6.0.8",
  93. # "HOME=/data/db"
  94. # ],
  95. # "Cmd": [
  96. # "mongod"
  97. # ],
  98. # "Image": "sha256:55e57b9922dce10fd72845f4a795b63b99d341564a4abb37a3d78a9e98db3dd7",
  99. # "Volumes": {
  100. # "/data/configdb": {},
  101. # "/data/db": {}
  102. # },
  103. # "WorkingDir": "",
  104. # "Entrypoint": [
  105. # "docker-entrypoint.sh"
  106. # ],
  107. # "OnBuild": null,
  108. # "Labels": {
  109. # "org.opencontainers.image.ref.name": "ubuntu",
  110. # "org.opencontainers.image.version": "22.04"
  111. # }
  112. # },
  113. # "Architecture": "amd64",
  114. # "Os": "linux",
  115. # "Size": 653663494,
  116. # "VirtualSize": 653663494,
  117. # "GraphDriver": {
  118. # "Data": {
  119. # "LowerDir": "/var/lib/docker/overlay2/5b733f9ebe9108ab66a2cd89d60ca64f15a1827d58e10863a5f6917ec7ce870b/diff:/var/lib/docker/overlay2/5db003ed1b4805c324e31b1973dcbc7941ea7bc830fabd24c25a0ca884c0dff0/diff:/var/lib/docker/overlay2/c0e9195ada90a69ef4e9b7237100cbf25e588b5f0d0ec2c1a09e376636559b1f/diff:/var/lib/docker/overlay2/767db65d190066cd065c7ef3a7242b88eae0ed588faa1698840389ce13e17325/diff:/var/lib/docker/overlay2/11baa6e9198d605ee6ec202ad65622c929d8774800d77620e6bbeca9a0e70701/diff:/var/lib/docker/overlay2/c6bd9f8bf2b7904c6b0ca1d06fcc5783dc1457c01c44a94971c98c48b28adf31/diff:/var/lib/docker/overlay2/ec4aeca2a472b1e56cd2d2f3e0de0c777fe117ca18d383c1a9a824d481d0c3b9/diff:/var/lib/docker/overlay2/843e9f4a5020b201720caa0f48c5f64e1ab7ee3f3ff519f54b708ab255ed2338/diff",
  120. # "MergedDir": "/var/lib/docker/overlay2/e466c67f50c942a19b78d58ce298b5b08ff50a66f355a82a044fdad4e1ee13ad/merged",
  121. # "UpperDir": "/var/lib/docker/overlay2/e466c67f50c942a19b78d58ce298b5b08ff50a66f355a82a044fdad4e1ee13ad/diff",
  122. # "WorkDir": "/var/lib/docker/overlay2/e466c67f50c942a19b78d58ce298b5b08ff50a66f355a82a044fdad4e1ee13ad/work"
  123. # },
  124. # "Name": "overlay2"
  125. # },
  126. # "RootFS": {
  127. # "Type": "layers",
  128. # "Layers": [
  129. # "sha256:59c56aee1fb4dbaeb334aef06088b49902105d1ea0c15a9e5a2a9ce560fa4c5d",
  130. # "sha256:1a59b0abba3f6fbef40fc470ccf9684d819fef94815c223926b8bfc3cdd216d6",
  131. # "sha256:7f085bc118e2a71d4ea30ed8affc9909b151bcaa46c50feb9343d581ed8b44ab",
  132. # "sha256:670c693201872c3aeafb8a4d0ad532d8ab664235f8f17e950e25dff703cd73dd",
  133. # "sha256:e749377ddefd3fbc259ff9cf3c9eb1e2132357bf71d4911e9f54a8e7bb07e29a",
  134. # "sha256:78ace655f48b9f397a1ca60dd289947d687fa9073527bc937c199f9a361f17d5",
  135. # "sha256:39e21f8e0d8ff9786e4d4bf62a4e8ab1b9092dc20af1237bdf60e44e84d0db92",
  136. # "sha256:4855933e47e3a035bda8458d84210db2ec55884abe655f7955ebb6bbf87af2b2",
  137. # "sha256:83aead15a9630366d668d2cf7a28d13843516c830702f9d91a56aab47b345f21"
  138. # ]
  139. # },
  140. # "Metadata": {
  141. # "LastTagTime": "0001-01-01T00:00:00Z"
  142. # }
  143. # }
  144. #]