当前位置:   article > 正文

Docker部署Jira、Confluence、Bitbucket、Bamboo、Crowd,Atlassian全家桶_docker bitbucket

docker bitbucket

注意:

bitbucket 安装版本需根据内核决定,原因会在下面说明。

还是不太推荐使用docker部署,官网也是不支持docker部署相关技术解答,所以资料都比较少。这边后面再配置统一登录的时候出现了问题,冒出了ip的问题,172开头的;之前不用docker部署,是没问题的。
在这里插入图片描述

解决方案:

将对应ip换为容器内的虚拟ip,但防止每次部署会发生改变,建议使用容器别名。
在这里插入图片描述
在这里插入图片描述

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124

2.启动过程

2.1 命令

# 运行
docker-compose -f docker-compose.yml -p atlassian up -d
# 销毁
docker-compose -p atlassian down
  • 1
  • 2
  • 3
  • 4

2.2 SQL脚本

先通过root账号登录数据库

ip 为数据库所在服务器ip
port 默认5432
POSTGRES_USER=root
POSTGRES_PASSWORD=root
POSTGRES_DB=postgres

执行sql

# jira
CREATE ROLE jira WITH LOGIN PASSWORD 'jira' VALID UNTIL 'infinity';
CREATE DATABASE jiradb WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
GRANT ALL PRIVILEGES ON DATABASE jiradb TO jira;

# confluence
CREATE ROLE conf WITH LOGIN PASSWORD 'conf' VALID UNTIL 'infinity';
CREATE DATABASE confluencedb WITH ENCODING='UTF8' OWNER=conf CONNECTION LIMIT=-1;
GRANT ALL PRIVILEGES ON DATABASE confluencedb TO conf;

# bitbucket
CREATE ROLE bitbucket WITH LOGIN PASSWORD 'bitbucket' VALID UNTIL 'infinity';
#如果存在,先删除
DROP DATABASE bitbucketdb;
CREATE DATABASE bitbucketdb WITH ENCODING='UTF8' OWNER=bitbucket CONNECTION LIMIT=-1;
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

bamboo和crowd

官方文档推荐方式与上面jiraconfluencebitbucket不同

# 建议创建一个完全空的Bamboo数据库。避免使用模板创建数据库,因为有些模板可能会插入默认表,从而在设置Bamboo时导致冲突。
  • 1
docker exec -it 7cc0b244fa2c  /bin/bash
root@7cc0b244fa2c:/# /usr/bin/createuser -S -d -r -P -E bamboo
Enter password for new role: bamboo
Enter it again: bamboo
root@7cc0b244fa2c:/# /usr/bin/createdb -O bamboo1 bamboodb
  • 1
  • 2
  • 3
  • 4
  • 5
docker exec -it 7cc0b244fa2c  /bin/bash
root@7cc0b244fa2c:/# /usr/bin/createuser -S -d -r -P -E crowd
Enter password for new role: crowd
Enter it again: crowd
root@7cc0b244fa2c:/# /usr/bin/createdb -O crowd crowddb
  • 1
  • 2
  • 3
  • 4
  • 5

或者沿用与上面jiraconfluencebitbucket的方式,经过GPT转换的。

CREATE ROLE bamboo WITH LOGIN PASSWORD 'bamboo' CREATEDB CREATEROLE;
CREATE DATABASE bamboodb WITH OWNER bamboo;
  • 1
  • 2
CREATE ROLE crowd WITH LOGIN PASSWORD 'crowd' CREATEDB CREATEROLE;
CREATE DATABASE crowddb WITH OWNER crowd;
  • 1
  • 2

3.其他服务都正常启动,唯独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 还是一样在问题
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

日志错误

在这里插入图片描述

刚启动时候

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

重启后

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27

查询分析原因

根据提供的日志信息,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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
# uname -r
5.10.16.3-microsoft-standard-WSL2
  • 1
  • 2

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

docker image inspect atlassian/bitbucket-server:7.21.20
  • 1
[
    {
        "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"
        }
    }
]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176

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+。
  • 1
  • 2
  • 3

在这里插入图片描述

结论:

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

番外

# cat /etc/os-release
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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
# uname -r
5.15.146.1-microsoft-standard-WSL2
  • 1
  • 2

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/675432
推荐阅读
相关标签
  

闽ICP备14008679号