如何使用wildfly swarm docker启用管理控制台?

如何使用wildfly swarm docker启用管理控制台?,docker,wildfly,wildfly-swarm,Docker,Wildfly,Wildfly Swarm,我想为服务器wildfly swarm docker提供主动控制台管理 我在pom有依赖关系 <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>management-console</artifactId> <version>2017.1.1</version> </dependency>

我想为服务器wildfly swarm docker提供主动控制台管理

我在pom有依赖关系

        <dependency>
    <groupId>org.wildfly.swarm</groupId>
    <artifactId>management-console</artifactId>
    <version>2017.1.1</version>
</dependency>
<dependency>
    <groupId>org.wildfly.swarm</groupId>
    <artifactId>management</artifactId>
    <version>2017.1.1</version>
    <type>jar</type>
</dependency>
但是没有起作用。
有人能帮我吗?

我在docker图像中添加了管理员用户。这样,您将在服务的所有任务(容器)中拥有相同的用户

Dockerfile的一个示例:

FROM jboss/wildfly:latest
# create user
RUN /opt/jboss/wildfly/bin/add-user.sh admin Admin#123 --silent
# enable management console
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]

下面的配置适合我

thorntail:
  management:
     audit-access:
       audit-log-logger:
         log-boot: true
         enabled: true
     security-realms:
       ApplicationRealm:
         ssl-server-identity:
           alias: my_app_ssl
           keystore-provider: PKCS12
           keystore-path: /home/keystore.p12
           keystore-password: changeit
       ManagementRealm:
         in-memory-authentication:
           users:
             admin:
               password: admin
         in-memory-authorization:
           users:
             admin:
               roles:
                 - admin
     http-interface-management-interface:
       console-enabled: true
       allowed-origins:
         - http://localhost:8080
       security-realm: ManagementRealm

以下是pom文件中添加的依赖项

<dependency>
            <groupId>io.thorntail</groupId>
            <artifactId>management</artifactId>
        </dependency>
        <dependency>
            <groupId>io.thorntail</groupId>
            <artifactId>management-console</artifactId>
        </dependency>


木卫一

有关更多信息,请参阅下面的链接

<dependency>
            <groupId>io.thorntail</groupId>
            <artifactId>management</artifactId>
        </dependency>
        <dependency>
            <groupId>io.thorntail</groupId>
            <artifactId>management-console</artifactId>
        </dependency>