Closed MichaelRoeder closed 6 years ago
@MichaelRoeder The way I see it, the following steps should do it:
pull
, network create
, container create
, container start
, network add container
and list container
)Changing code itself would probably be the easiest thing here.
That means that Docker swarm or Swarmkit will become a prerequesite to run the HOBBIT platform, right?
@MichaelRoeder swarmkit will, but it's been integrated into docker for quite some time
Docker networks would need to be overlay ones:
docker network remove hobbit
docker network remove hobbit-core
docker network create --driver overlay hobbit
docker network create --driver overlay hobbit-core
Creating overlay networks is not possible in a local setup, is it? I think they are bound to a Docker swarm cluster.
I think you can have one-node swarm and overlay network on it, so should work locally too.
Sure but wouldn't that create additional effort for the user? I do not really see why we now have to care about the type of the network. Before, we could work with the networks regardless of their type, right?
docker swarm init && docker create network --driver overlay hobbit
is not that much effort IMO :P
I simply don't know how good swarm is now integrated into Docker. If the user has to take care of adding stuff like docker-compose -H :4000
as we have to do it now, I would try to avoid this ;)
Apart from that, I still haven't got an answer why always using overlay networks should be necessary.
That's necessary because docker services use overlay networks instead of regular ones, more info: https://docs.docker.com/engine/swarm/networking/
Such network setup would be the default because as currently planned platform will only work with swarm.
In a local setup swarm is being initialized as just docker swarm init
without any other dependencies.
New swarm just has different CLI commands, no need to specify different endpoint AFAIK.
The migration from the container based swarm to Swarmkit should give use
@yamalight Could you please figure out what we have to do to prepare a migration?