Docker安装Atlassian全家桶

发布时间:2024年01月12日

省流:

bitbucket 只能安装6版本及其以下,原因会在下面说明,其他可按需安装。

1.docker-compose文件

version: '3'

# 定义通用配置
x-common-config: &common-config
  environment:
    TZ: Asia/Shanghai
    LANG: en_US.UTF-8

services:
  jira:
    image: atlassian/jira-software:latest
    container_name: jira
    restart: always
    ports:
      - "8080:8080"
    depends_on:
      - atlassiandb
    environment:
      - DB_HOST=jira-db
      - DB_PORT=5432
      - DB_NAME=jiradb
      - DB_USER=jira
      - DB_PASSWORD=jira
      - CATALINA_OPTS=-javaagent:/opt/atlassian/jira/atlassian-agent.jar
    volumes:
      - ./jira/logs:/opt/atlassian/jira/logs
      - ./jira/data:/var/atlassian/application-data/jira
      - ./atlassian-agent.jar:/opt/atlassian/jira/atlassian-agent.jar
 
  confluence:
    image: atlassian/confluence-server:latest
    container_name: confluence
    restart: always
    ports:
      - "8090:8090"
      - "8091:8091"
    depends_on:
      - atlassiandb
    environment:
      - DB_HOST=confluence-db
      - DB_PORT=5432
      - DB_NAME=confluencedb
      - DB_USER=conf
      - DB_PASSWORD=conf
      - CATALINA_OPTS=-javaagent:/opt/atlassian/confluence/atlassian-agent.jar
    volumes:
      - ./confluence/logs:/opt/atlassian/confluence/logs
      - ./confluence/data:/var/atlassian/application-data/confluence
      - ./atlassian-agent.jar:/opt/atlassian/confluence/atlassian-agent.jar
 
  bitbucket:
    image: atlassian/bitbucket-server:7.21.20
    container_name: bitbucket
    restart: always
    ports:
      - "7990:7990"
      - "7999:7999"
    depends_on:
      - atlassiandb
    environment:
      - DB_HOST=bitbucket-db
      - DB_PORT=5432
      - DB_NAME=bitbucketdb
      - DB_USER=bitbucket
      - DB_PASSWORD=bitbucket
      - CATALINA_OPTS=-javaagent:/opt/atlassian/bitbucket/atlassian-agent.jar
    volumes:
      #- ./bitbucket/logs:/opt/atlassian/bitbucket/logs
      - ./bitbucket/data:/var/atlassian/application-data/bitbucket
      - ./atlassian-agent.jar:/opt/atlassian/bitbucket/atlassian-agent.jar
 
  bamboo:
    image: atlassian/bamboo-server:latest
    container_name: bamboo
    restart: always
    ports:
      - "8085:8085"
    depends_on:
      - atlassiandb
    environment:
      - DB_HOST=bamboo-db
      - DB_PORT=5432
      - DB_NAME=bamboodb
      - DB_USER=bamboo
      - DB_PASSWORD=bamboo
      - CATALINA_OPTS=-javaagent:/opt/atlassian/bamboo/atlassian-agent.jar
    volumes:
      - ./bamboo/logs:/opt/atlassian/bamboo/logs
      - ./bamboo/data:/var/atlassian/application-data/bamboo
      - ./atlassian-agent.jar:/opt/atlassian/bamboo/atlassian-agent.jar
 
  crowd:
    image: atlassian/crowd:latest
    container_name: crowd
    restart: always
    ports:
      - "8095:8095"
    depends_on:
      - atlassiandb
    environment:
      - DB_HOST=crowd-db
      - DB_PORT=5432
      - DB_NAME=crowddb
      - DB_USER=crowd
      - DB_PASSWORD=crowd
      - CATALINA_OPTS=-javaagent:/opt/atlassian/crowd/atlassian-agent.jar
    volumes:
      - ./crowd/logs:/opt/atlassian/crowd/logs
      - ./crowd/data:/var/atlassian/application-data/crowd
      - ./atlassian-agent.jar:/opt/atlassian/crowd/atlassian-agent.jar
 
  atlassiandb:
    image: postgres:14.10
    container_name: atlassiandb
    restart: always
    ports:
      - "5432:5432"
    environment:
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=root
      - POSTGRES_DB=postgres
      - ALLOW_IP_RANGE=0.0.0.0/0 # 允许所有ip访问
    volumes:
      - ./atlassiandb/data:/var/lib/postgresql/data

2.其他服务都正常启动,唯独Bitbucket不行。

# A fatal error has occurred
# The following problem occurred, which prevents Atlassian Bitbucket from starting:

# SpringMVC dispatcher [springMvc] could not be started

# 切换镜像 atlassian/bitbucket-server:latest 还是一样在问题

日志错误

在这里插入图片描述

刚启动时候

2024-01-12 07:19:16,455 WARN  [spring-startup]  c.a.s.i.s.git.hook.GitHookInstaller Native hook callback '/hook-callback/x86_64-linux/mesh-callback' is incompatible with the current platform (Linux 5.10.16.3-microsoft-standard-WSL2 amd64). Falling back to the perl version.
2024-01-12 07:19:16,458 WARN  [spring-startup]  o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitHookInstaller' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Invocation of init method failed; nested exception is java.io.IOException: No such file or directory
2024-01-12 07:19:16,531 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared
2024-01-12 07:19:16,837 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
2024-01-12 07:19:16,841 ERROR [spring-startup]  c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitHookInstaller' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Invocation of init method failed; nested exception is java.io.IOException: No such file or directory
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:921)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at javax.servlet.GenericServlet.init(GenericServlet.java:143)
	at java.base/java.lang.Thread.run(Thread.java:829)
	... 15 frames trimmed
Caused by: java.io.IOException: No such file or directory
	at java.base/sun.nio.ch.FileDispatcherImpl.size0(Native Method)
	at java.base/sun.nio.ch.FileDispatcherImpl.size(FileDispatcherImpl.java:90)
	at java.base/sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:383)
	at java.base/sun.nio.ch.FileChannelImpl.transferFrom(FileChannelImpl.java:772)
	at com.atlassian.stash.internal.scm.git.DefaultGitRepositoryLayout.installHook(DefaultGitRepositoryLayout.java:128)
	at com.atlassian.stash.internal.scm.git.hook.GitHookInstaller.installHooks(GitHookInstaller.java:146)
	at com.atlassian.stash.internal.scm.git.hook.GitHookInstaller.lambda$installHooks$0(GitHookInstaller.java:113)
	at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:59)
	at com.atlassian.stash.internal.scm.git.hook.GitHookInstaller.installHooks(GitHookInstaller.java:112)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	... 5 common frames omitted

重启后

2024-01-12 07:23:27,754 WARN  [spring-startup]  c.a.s.i.s.git.hook.GitHookInstaller Native hook callback '/hook-callback/x86_64-linux/mesh-callback' is incompatible with the current platform (Linux 5.10.16.3-microsoft-standard-WSL2 amd64). Falling back to the perl version.
2024-01-12 07:23:27,758 WARN  [spring-startup]  o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitHookInstaller' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Invocation of init method failed; nested exception is java.nio.file.FileAlreadyExistsException: /var/atlassian/application-data/bitbucket/shared/config/git/hooks/pack-objects.tmp -> /var/atlassian/application-data/bitbucket/shared/config/git/hooks/tmp-4744d874aea89ebe-pack-objects.tmp
2024-01-12 07:23:27,852 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared
2024-01-12 07:23:27,884 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
2024-01-12 07:23:27,890 ERROR [spring-startup]  c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitHookInstaller' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Invocation of init method failed; nested exception is java.nio.file.FileAlreadyExistsException: /var/atlassian/application-data/bitbucket/shared/config/git/hooks/pack-objects.tmp -> /var/atlassian/application-data/bitbucket/shared/config/git/hooks/tmp-4744d874aea89ebe-pack-objects.tmp
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:921)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at javax.servlet.GenericServlet.init(GenericServlet.java:143)
	at java.base/java.lang.Thread.run(Thread.java:829)
	... 15 frames trimmed
Caused by: java.nio.file.FileAlreadyExistsException: /var/atlassian/application-data/bitbucket/shared/config/git/hooks/pack-objects.tmp -> /var/atlassian/application-data/bitbucket/shared/config/git/hooks/tmp-4744d874aea89ebe-pack-objects.tmp
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileSystemProvider.createLink(UnixFileSystemProvider.java:481)
	at java.base/java.nio.file.Files.createLink(Files.java:1102)
	at com.atlassian.stash.internal.scm.git.DefaultGitRepositoryLayout.openLockWithHardLink(DefaultGitRepositoryLayout.java:327)
	at com.atlassian.stash.internal.scm.git.DefaultGitRepositoryLayout.installHook(DefaultGitRepositoryLayout.java:127)
	at com.atlassian.stash.internal.scm.git.hook.GitHookInstaller.installHooks(GitHookInstaller.java:146)
	at com.atlassian.stash.internal.scm.git.hook.GitHookInstaller.lambda$installHooks$0(GitHookInstaller.java:113)
	at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:59)
	at com.atlassian.stash.internal.scm.git.hook.GitHookInstaller.installHooks(GitHookInstaller.java:112)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	... 5 common frames omitted

查询分析原因

根据提供的日志信息,Bitbucket 在部署时遇到了两个警告和错误:

  1. 警告:Native hook callback '/hook-callback/x86_64-linux/mesh-callback' is incompatible with the current platform (Linux 5.10.16.3-microsoft-standard-WSL2 amd64). Falling back to the perl version. 这个警告表示 Bitbucket 检测到使用的本机钩子回调与当前平台不兼容。由于环境不匹配,Bitbucket 将使用 perl 版本的钩子回调来代替。
  2. 错误:Error creating bean with name 'gitHookInstaller' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Invocation of init method failed; nested exception is java.io.IOException: No such file or directory 这个错误表示创建 gitHookInstaller bean 失败,原因是找不到指定的文件或目录。这可能是由于配置错误或缺失的文件导致的。
  3. 警告:Native hook callback '/hook-callback/x86_64-linux/mesh-callback' is incompatible with the current platform (Linux 5.10.16.3-microsoft-standard-WSL2 amd64). Falling back to the perl version. 这个警告与第一个警告相同,表示 Bitbucket 检测到使用的本机钩子回调与当前平台不兼容,并回退到 perl 版本的钩子回调。
  4. 错误:Error creating bean with name 'gitHookInstaller' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Invocation of init method failed; nested exception is java.nio.file.FileAlreadyExistsException: /var/atlassian/application-data/bitbucket/shared/config/git/hooks/pack-objects.tmp -> /var/atlassian/application-data/bitbucket/shared/config/git/hooks/tmp-4744d874aea89ebe-pack-objects.tmp 这个错误表示创建 gitHookInstaller bean 失败,原因是在安装钩子时出现文件已存在的异常。可能是由于之前的部署或配置问题导致临时文件无法正确创建。

要解决这些问题,你可以尝试以下步骤:

  1. 确保你的环境与 Bitbucket 的要求匹配。检查操作系统、硬件和依赖项是否符合 Bitbucket 的支持要求。
  2. 检查 Bitbucket 的配置文件,确保所有路径和目录都正确设置,并且文件和目录存在。
  3. 如果你使用的是自定义钩子回调,尝试将其更改为与当前平台兼容的版本。
  4. 在重启服务之前,确认之前部署的文件已被正确清理。删除任何残留的临时文件或目录。

再针对第一点排查

这个警告表示 Bitbucket 检测到使用的本机钩子回调与当前平台不兼容。由于环境不匹配,Bitbucket 将使用 perl 版本的钩子回调来代替。要解决这个问题,你可以尝试以下几种方法:

  1. 确认操作系统和平台:首先,确认你正在运行 Bitbucket 的操作系统和平台。根据警告信息中提供的信息,你的平台是 Linux 5.10.16.3-microsoft-standard-WSL2 amd64。
  2. 检查本机钩子回调:检查 Bitbucket 中配置的本机钩子回调文件,确保其与当前平台兼容。你可以查看 Bitbucket 服务器的 hooks 目录,找到相关的本机钩子文件。
  3. 更新或修改钩子回调:如果发现你的钩子回调文件与当前平台不兼容,尝试更新或修改钩子回调文件以适应当前平台。你可以参考 Bitbucket 的官方文档和社区支持论坛,了解如何编写适应不同平台的钩子回调。
  4. 使用 Perl 版本的回调:如果你无法解决本机钩子回调的兼容性问题,可以继续使用 Bitbucket 提供的 Perl 版本的回调。虽然 Perl 版本的回调可能相对较慢,但可以在大多数情况下正常工作。

看样子是安装的bitbucket和系统环境有冲突问题?

进入容器,敲入cat /etc/os-release查看系统发行版本,再敲入uname -r查询内核信息

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
# uname -r
5.10.16.3-microsoft-standard-WSL2

查看所安装镜像的系统配置,找到Config下的Labels
在这里插入图片描述

docker image inspect atlassian/bitbucket-server:7.21.20
[
    {
        "Id": "sha256:c879a968bb4a666ec370dd5b83ad096de3cc64de977cb5fe362aa142c29aff41",
        "RepoTags": [
            "atlassian/bitbucket-server:7.21.20"
        ],
        "RepoDigests": [
            "atlassian/bitbucket-server@sha256:ac799f21c576cb3cfb62ba82ebc71bd09d832981abc6009633845cd4229c6351"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2024-01-06T17:26:15.168172522Z",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "7990/tcp": {},
                "7999/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "JAVA_HOME=/opt/java/openjdk",
                "LANG=en_US.UTF-8",
                "LANGUAGE=en_US:en",
                "LC_ALL=en_US.UTF-8",
                "JAVA_VERSION=jdk-11.0.21+9",
                "APP_NAME=bitbucket",
                "RUN_USER=bitbucket",
                "RUN_GROUP=bitbucket",
                "RUN_UID=2003",
                "RUN_GID=2003",
                "BITBUCKET_HOME=/var/atlassian/application-data/bitbucket",
                "BITBUCKET_INSTALL_DIR=/opt/atlassian/bitbucket",
                "SEARCH_ENABLED=true",
                "APPLICATION_MODE=default",
                "JRE_HOME=/opt/java/openjdk",
                "JAVA_BINARY=/opt/java/openjdk/bin/java"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) COPY file:e2e1b4a381c573f2048dda23b1ebce103d20459018ebdd29ccf30549f2f0525b in /sbom/sbom.cdx.json "
            ],
            "Image": "sha256:e1fc55560e16833a4da34e347ba0661332ceb32041363b5d86675bc340364a21",
            "Volumes": {
                "/var/atlassian/application-data/bitbucket": {}
            },
            "WorkingDir": "/var/atlassian/application-data/bitbucket",
            "Entrypoint": [
                "/usr/bin/tini",
                "--"
            ],
            "OnBuild": null,
            "Labels": {
                "maintainer": "dc-deployments@atlassian.com",
                "org.opencontainers.image.ref.name": "ubuntu",
                "org.opencontainers.image.version": "22.04",
                "securitytxt": "https://www.atlassian.com/.well-known/security.txt"
            }
        },
        "DockerVersion": "20.10.24",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "7990/tcp": {},
                "7999/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "JAVA_HOME=/opt/java/openjdk",
                "LANG=en_US.UTF-8",
                "LANGUAGE=en_US:en",
                "LC_ALL=en_US.UTF-8",
                "JAVA_VERSION=jdk-11.0.21+9",
                "APP_NAME=bitbucket",
                "RUN_USER=bitbucket",
                "RUN_GROUP=bitbucket",
                "RUN_UID=2003",
                "RUN_GID=2003",
                "BITBUCKET_HOME=/var/atlassian/application-data/bitbucket",
                "BITBUCKET_INSTALL_DIR=/opt/atlassian/bitbucket",
                "SEARCH_ENABLED=true",
                "APPLICATION_MODE=default",
                "JRE_HOME=/opt/java/openjdk",
                "JAVA_BINARY=/opt/java/openjdk/bin/java"
            ],
            "Cmd": [
                "/entrypoint.py",
                "--log=INFO"
            ],
            "Image": "sha256:e1fc55560e16833a4da34e347ba0661332ceb32041363b5d86675bc340364a21",
            "Volumes": {
                "/var/atlassian/application-data/bitbucket": {}
            },
            "WorkingDir": "/var/atlassian/application-data/bitbucket",
            "Entrypoint": [
                "/usr/bin/tini",
                "--"
            ],
            "OnBuild": null,
            "Labels": {
                "maintainer": "dc-deployments@atlassian.com",
                "org.opencontainers.image.ref.name": "ubuntu",
                "org.opencontainers.image.version": "22.04",
                "securitytxt": "https://www.atlassian.com/.well-known/security.txt"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 2457450879,
        "VirtualSize": 2457450879,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/016236b266988fbd891c28f4bdf3dc5f6e583eec2a6c4396fe082086280979ac/diff:/var/lib/docker/overlay2/69a69a96259bc272eccbdd63225e6577a86191ed4c9ee97a0f85d370f9457983/diff:/var/lib/docker/overlay2/31f4bbe42e59725c0c11c0e21d362c415bfb4e4d351c0c7c31e2daace402207d/diff:/var/lib/docker/overlay2/17768f3b61e0aacd891926d79cb6408543932d23f6187292a1faac9920222320/diff:/var/lib/docker/overlay2/8fd76cecdb63985f3c5dda4ee8ffdcb03568e2c3df1b9e333cb332061314b46b/diff:/var/lib/docker/overlay2/74fc5ee60e7d92937a591a0304da743b51d3da90c19750654f117468a0ec300a/diff:/var/lib/docker/overlay2/8c6c46eea76dc41dbd55e5cf9a1819c1392e98134b661ffaf3115aefbb34bf04/diff:/var/lib/docker/overlay2/8869007d89a619d018e8394217d9cba6a4590528a2ef9deb1778a0db84adecd6/diff:/var/lib/docker/overlay2/a22882adaa27f88c0d586e5ccf68ad96b0803e895a7848af0e77b453a8f4bc5c/diff:/var/lib/docker/overlay2/735a124c8af5141479a7249e2d2ea116f33f5600f1adf3d8dcca999af344a8ee/diff:/var/lib/docker/overlay2/ae7c696d717268e827aa41cbf8c0053f273bea86292791bcf9fb0d1d4b289156/diff:/var/lib/docker/overlay2/4941344f6e02303f80e7f73ac95396ea570734e34ce03ea92aaecf4a2ef0fb1e/diff:/var/lib/docker/overlay2/7a77993ff35002c9bda327b6f1a57d59e0f256d611a06bd957697f3181afff60/diff:/var/lib/docker/overlay2/a01e55a7339aa428086ac8159f2396fa9fb8c23f1585eba07add626eed32fee0/diff:/var/lib/docker/overlay2/6208546927e0df5874a4e2daf63d0a1aa55ed0095e447450cb3b44317d08a549/diff:/var/lib/docker/overlay2/8750c04df0afb2824d7cc49bb3db756c52a57992927def84bb805f74c98022ea/diff:/var/lib/docker/overlay2/8bb98745253e812637ae2353cd0470c0c7ef89012c35288446dda178f492904f/diff:/var/lib/docker/overlay2/02682e3baadaaf0b7611276ac9dbd07dcb348381a9d0087a235ce264ab3b30dd/diff:/var/lib/docker/overlay2/159813d8be504791cf6d3e57059338893f7882ee01beae5dde4081f44c376575/diff:/var/lib/docker/overlay2/1322ad0ee65e27820ba789601eecd3b1ee8ac0bd3c7a2e1e4ae9ff1ce4a35549/diff:/var/lib/docker/overlay2/f0a66628eceaa40a3ed1a0dee4a1421ba54fe007ad59891459feefe6274780fc/diff:/var/lib/docker/overlay2/0a761048559cee2bda7d520652dc5eae5ac39586486dd640db161b76361a5ee5/diff:/var/lib/docker/overlay2/6bd093e07f8ddb0f4ec05ca6f0dd4673566239750bd17422935041fa1ac7b890/diff:/var/lib/docker/overlay2/ae2d8ee8e46d7fe749a996f01a2930850abf1496eec409d78563600e421e5171/diff:/var/lib/docker/overlay2/d79e95d305f6d5315bf727d388cfa969eda3d25fc93a21fea3dae8e5516dc89c/diff:/var/lib/docker/overlay2/9c1ed571e1d715482a395a3aaac45d6de5b040e0ed8a96b4a88e0e0f7f417d43/diff:/var/lib/docker/overlay2/b477ba3c62a06f95a371bf046be5345b96f1c1bf75b1d3343da37261d59773e6/diff:/var/lib/docker/overlay2/32d7271408f772b52982a1ac6dbce5812800edb993a84a452d813896eba1b22b/diff",
                "MergedDir": "/var/lib/docker/overlay2/81737589b2833b66e6ac8bfa1a702cf0f19543d740d22d5d8f6791acd108a6fd/merged",
                "UpperDir": "/var/lib/docker/overlay2/81737589b2833b66e6ac8bfa1a702cf0f19543d740d22d5d8f6791acd108a6fd/diff",
                "WorkDir": "/var/lib/docker/overlay2/81737589b2833b66e6ac8bfa1a702cf0f19543d740d22d5d8f6791acd108a6fd/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:a1360aae5271bbbf575b4057cb4158dbdfbcae76698189b55fb1039bc0207400",
                "sha256:8f51a32da2dedb6180408f11479960cbce68d78c4bb35b5fd22ebb9853d64d76",
                "sha256:21f256208a919dc6b574b74d7a7aa17d44e2d7233c9d9690a8da715e40c81885",
                "sha256:6dd56ceb442b5a52a59f3f56c1f7e4351d472ee20dd55fbc6b0191ecc52e7697",
                "sha256:7a2648dbf8bc31ee9cc47c23075f375334a19c1fc1888de6c008bb48b538665c",
                "sha256:83ffb9b5d7faae47376315a77b830ee255b61f9740d442c730eaa47b00844571",
                "sha256:f34c0d1bbfca950a3bd98f676be6278fbde0cb4da45cd6de48431cfa85018e52",
                "sha256:a60cd6ce849ca416458b53a2efef2f4f7ffe5c1c43fdaf137f56b489d88af16f",
                "sha256:a9d9a90a425ab7646ce34da4e34627ce5c58257e72ffce4481100a80afd7a109",
                "sha256:e744369d2463ea772001b27b6a0a0c8749e825888b85744fee2b92324e9413a2",
                "sha256:93f519b42120fc6d989f9ef6d5f38882bc277677e981d2975bc21efd3875c4ad",
                "sha256:6a73ec901f0a2b280c0ae340b766966d8ea9fd6296f04978cb537b6270d0cb46",
                "sha256:44fa737dcac3896ad4d0f8f0b652f3ce470795e707a655d20a9943666079ca35",
                "sha256:025594f27484d0bf2ee8d5a899fb6d4b88605662c305a2b93210899c2627f14b",
                "sha256:389a5b69b60f08fa7edc33876c81875c058b1d7831741c621d0b3eb3446e5d3e",
                "sha256:5ca73b3af0791f4ec6530050ea6e605116f8287219c9d0489fee4bf4e9cfe422",
                "sha256:7f8ab795a0389142022a839884a88661afa5c4d4503d6af54a74ad2c960452ae",
                "sha256:76d8b774b68ff7293c482e92ce255226d08643380571bf124a25fc851456dc3f",
                "sha256:76d8b774b68ff7293c482e92ce255226d08643380571bf124a25fc851456dc3f",
                "sha256:d2ebe5a5cb62452b98a956451464c52e91153cb443f371de1434abd8212fbb55",
                "sha256:e1270273dce7e4abcfb984abc16ed8216cbe7558862bbc3611713a6a31a0f098",
                "sha256:e1270273dce7e4abcfb984abc16ed8216cbe7558862bbc3611713a6a31a0f098",
                "sha256:8021a956440322360fd000d630456d0e49d4352a4aeec6c7caa1eeb60b317428",
                "sha256:f6618b07faa72afc2ca384b21725917ba53fe1e55ff8a6892cd81399fefad7cf",
                "sha256:f6618b07faa72afc2ca384b21725917ba53fe1e55ff8a6892cd81399fefad7cf",
                "sha256:c74160232daee90f04c9259ff778530aa0b1672072cacbe789e5834f39421d0b",
                "sha256:def0dbf96e8bbc597bce62407a4dd294d601332bcf5729049afc7ec3bfe1b62b",
                "sha256:def0dbf96e8bbc597bce62407a4dd294d601332bcf5729049afc7ec3bfe1b62b",
                "sha256:8cf74005b28f44a5093bd993b29fc7102b933466f989d6e3551b72aa8d2991e0"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

Bitbucket7.21.20所支持的linux内核

Linux support requires a 2.6.17+ kernel and glibc 2.7+.  This means that Red Hat Enterprise Linux 5, which uses glibc 2.5, is no longer supported for Bitbucket Server 7.0+.

# Linux支持需要2.6.17+内核和glibc 2.7+。这意味着使用glibc 2.5的Red Hat Enterprise Linux 5不再支持Bitbucket Server 7.0+。

在这里插入图片描述

结论:

然而上面我们查到的内核是Linux 5.10.16.3-microsoft-standard-WSL2 amd64,所以大概率是这个原因。所以尝试把镜像版本降低到6.10.17,居然就可以了。所以说是官方封的镜像有问题!!!丢
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

文章来源:https://blog.csdn.net/baidu_35751704/article/details/135557648
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。