我查看了Arun Gupta的,但是当尝试启动构建的jar时,我得到了Error: Could not find or load main class org.wildfly.swarm.bootstrap.Main.
\wildfly-samples-master\swarm>mvn clean install
[INFO] --- wildfly-swarm-plugin:1.0.0.Alpha1:create (default) @ swarm ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-inst
没有列表选项 docker swarm list
Usage: docker swarm COMMAND
Manage Swarm
Commands:
ca Display and rotate the root CA
init Initialize a swarm
join Join a swarm as a node and/or manager
join-token Manage join tokens
leave Leave the swarm
unlock Unlock swarm
我有以下问题:我想重新做一个项目,从好的老C到C++,并使一切class(y) :),并保持它的可伸缩性从一开始。
它是网格上细胞(群的一部分)的模拟,因此我决定了以下结构:
class Simulation has an instance of
class Grid has an instance of
class Swarm has an instance of
class Cell
我在单独的头文件中定义了类。当然,我也需要能够调用网格、群和单元中的函数。我想直接做:
Simulation mysim;
mysim.get_grid(0).any_function_
我正在尝试使用Terraform来旋转一些EC2服务器,我将DockerS群配置为在其上运行。我在上有所有的代码。
错误
aws_instance.swarm-node.0 (remote-exec): Connected!
aws_instance.swarm-node.0 (remote-exec): Cannot connect to the Docker daemon. Is the docker daemon running on this host?
aws_instance.swarm-node.0 (remote-exec): flag needs an argument: -
我试图用Ansible添加三个主节点。
- name : Init a new swarm with default parameters
community.general.docker_swarm:
advertise_addr: "{{ docker_swarm_master_ip }}"
state : present
register : swarm_info
when :
- ansible_eth1.ipv4.address
在设置了多个worker swarm集群之后,当我尝试登录到主节点并访问worker节点列表时。它给了我一个错误。
root@swarm-master-91881543-0:~# docker node ls
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
root@swarm-master-9188154
我一直在尝试用机器运行docker swarm。我使用virtualbox作为提供者。我能够生成三个am,并将它们作为swarm-master、swarm-node-00和swarm-node-01运行。但是我不能使用我的集群。以下是一些其他信息:
[peeyush@localhost swarm]$ docker-machine_linux-amd64 ls
NAME ACTIVE DRIVER STATE URL SWARM
dev virtualbox Running tcp://192.168.99.100:2376
swarm-master virtualbox Running t
我有一个管理器节点(swarm- manager )和两个工作节点(swarm-worker01和swarm-worker02)。我输入了命令docker node promote swarm-worker01,它给了我以下输出:
Node swarm-worker01 promoted to a manager in the swarm.
但docker node ls并没有提到swarm-worker01是一名管理者:
ID HOSTNAME STATUS AVAILABILITY
对于多个项目,我使用wildfly-swarm来避免安装For服务器。swarm jar文件生成后,我可以通过"java swarm.jar“成功启动它。
但是,为了方便调试,我想通过我的IDE (eclipse)启动它。通过直接启动我的主类或使用fakerplace,我有以下异常:
Fakereplace is running.
Dependencies not bundled, will resolve from local M2REPO
2017-01-17 08:31:41,806 org.wildfly.swarm.internal.SwarmMessages [main]
我创建覆盖网络的努力都是徒劳的。 docker network create --driver overlay new_network
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again. Docker-机器列表 docker-machine ls
NAME ACTIVE DRI
bc@bc-HP-Pro-3090-Microtower-PC:~/supply-chain$ ipfs daemon --writable=true
Initializing daemon...
Adjusting current ulimit to 2048...
Successfully raised file descriptor limit to 2048.
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/172.17.0.1/tcp/4001
Swarm listening on /ip4/172
我以蜂群模式开始对接:
$ docker swarm init
Swarm initialized: current node (4szigol8wugf0m1bqhxei9bvh) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join --token SWMTKN-1-4oy3q8mzepcjrrms17uwtp0pp0rc1ttkztpq2v97r0detnvokl-2uvc24bcy2gnrc4kmy9ndlsum 192.168.65.3:2
我正在尝试使用Java构建一个web应用程序服务器,并且该应用程序必须能够在内部运行另一个WildFly程序(我不想将其作为外部进程运行)。我正在尝试将外部程序作为.jar依赖项包含到我的web应用程序中,但是,wildfly-swarm-package任务总是失败,并显示以下信息:
:clean
:compileJava
:processResources UP-TO-DATE
:classes
:war
:wildfly-swarm-package FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Ex
根据Docker文档,当我们初始化docker swarm时,会自动创建覆盖网络。但是我们不能将该网络用于不属于群资源的单个码头容器。因此,我们需要创建带有"--attachable“标志的覆盖网络。 我尝试创建可连接的覆盖网络,但收到以下错误: docker network create -d overlay --attachable my-attachable-overlay
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "
我没有使用Docker,每次运行docker inspect some_container时,我都会在syslog中得到以下错误:
dockerd[2019]: time="..." level=error \
msg="Handler for GET /v1.38/secrets returned error: \
This node is not a swarm manager. \
Use \"docker swarm init\" or \"docker swarm join\" to \
conn
我正在尝试使用Ansible配置Docker swarm集群,当管理器节点被配置时,我设置了一个带有ip地址的自定义事实(docker_manager_address),这样其他节点就可以知道加入集群的ip。
事实是正确设置的,我可以在管理器节点中获取它的值,但是当我尝试在其他节点上运行的任务中获取事实时(使用hostvars),它没有被定义。
以下是我的任务:
- name: Declare the address of the first Swarm manager as a fact.
set_fact:
docker_manager_address: "{{ doc
我有以下的Bird定义:
class Bird:
def __init__(self, swarm, position = None):
if (swarm == None):
raise ValueError("swarm variable should not be None!")
if (not(type(swarm)).__name__ == 'ParticleSwarmOptimization'):
raise TypeError("swarm varia