小编Wai*_*Yiu的帖子

如何将带参数的命令参数(例如 --param1=arg1)传递给 Synology DSM 中的 Docker 容器运行命令

我需要将带参数的命令参数传递给--param1=arg1Synology DSM 中 docker 容器的运行命令。包中心的 docker 应用版本是17.05.0-0401.

在选择一个 docker 镜像并打开Create Container窗口时,我通过以下步骤找到了命令的配置:

  1. 点击Advanced Settings按钮
  2. 单击Environment选项卡
  3. 填写部分Command:下的值Execution Command(例如,execname --param1=arg1

但是,我在创建容器时收到以下错误。

Run command format error.
Run Code Online (Sandbox Code Playgroud)

synology docker

7
推荐指数
1
解决办法
2628
查看次数

使用 spring-boot 和 bitronix JTA 管理器将 XA 数据源配置到 mysql 8 DB 失败,并出现 SqlException XAERR_RMERR

我创建了一个 Spring Boot 2 (2.1.6.RELEASE) 项目,该项目依赖于 spring-boot-starter-data-jpa 和 spring spring-boot-starter-jta-bitronix,并为 Mysql DB (8.0.16 )。

应用程序属性文件(根据 <> 之间的占位符值的相关性进行修剪)包含以下配置:

spring:
  datasource:
    url: jdbc:mysql://<host>:<port>/<dbName>
    username: <username>
    password: <password>
    driver-class-name: com.mysql.cj.jdbc.Driver
  jpa:
    database-platform: org.hibernate.dialect.MySQL8Dialect
    hibernate:
      ddl-auto: none
  jta:
    bitronix:
      properties:
        server-id: <serverid>
Run Code Online (Sandbox Code Playgroud)

在启动 Spring Boot 应用程序时,我收到以下错误堆栈跟踪:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unsatisfied dependency expressed through method 'entityManagerFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactoryBuilder' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unsatisfied …
Run Code Online (Sandbox Code Playgroud)

mysql jta xa spring-data-jpa bitronix

3
推荐指数
1
解决办法
5346
查看次数

标签 统计

bitronix ×1

docker ×1

jta ×1

mysql ×1

spring-data-jpa ×1

synology ×1

xa ×1