You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the probably easy question :-) I would like to deploy a number of containers that are related to each other.
I assume the best way of doing this is just to deploy each container manually using bollard and set them to a common network, so they can access each other?
I suppose what I am trying to do is deploy a similar construct to what a docker-compose file would do.
I did see some talk about a stack (which is related to swarm) and wondered if my approach of the manually of creating containers and starting them individually using a common network, is in fact the correct way of doing this?
Do you have an example out of interest, no worries if you don't, I will start to look at it.
Just didn't want to re-invent the wheel if it was something already taken care of.
Coming from a GO background so Rust is still kind of new to me and finding my ground.
Thanks
The text was updated successfully, but these errors were encountered:
Yeah, you can certainly do this with bollard.. and what you describe is how you would go about it, but bollard is a relatively low-level API client, so you might find something more ergonomic elsewhere.
I think if you look around at libraries that use bollard underneath, you'll find some frameworks that do better plumbing around your use-case. Perhaps the community can pitch in here with some suggestions, I haven't used this one, but it seems popular - https://github.com/testcontainers/testcontainers-rs
Hi,
Sorry for the probably easy question :-) I would like to deploy a number of containers that are related to each other.
I assume the best way of doing this is just to deploy each container manually using bollard and set them to a common network, so they can access each other?
I suppose what I am trying to do is deploy a similar construct to what a docker-compose file would do.
I did see some talk about a stack (which is related to swarm) and wondered if my approach of the manually of creating containers and starting them individually using a common network, is in fact the correct way of doing this?
Do you have an example out of interest, no worries if you don't, I will start to look at it.
Just didn't want to re-invent the wheel if it was something already taken care of.
Coming from a GO background so Rust is still kind of new to me and finding my ground.
Thanks
The text was updated successfully, but these errors were encountered: