Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch docker container for each user

Tags:

docker

So, I have this application as a service. Each application is user specific. So for each user, I would like to launch a new docker instance. There should be a possibility to restart the docker instance where it was last left. So it needs persistent storage too.

I would like to know if there are any library/framework which makes this easier? Would be great if this library is golang library.

Hint1: It is not the same, but similar to how services like koding.com, etc launch a separate container for each user/user's project.

like image 996
Ravi Teja Gudapati Avatar asked Dec 21 '15 10:12

Ravi Teja Gudapati


1 Answers

Take a look at Giant Swarm. It let's you build, deploy and manage your containerized server applications(microservices). But I think it's in a closed beta now.

Services you run on Giant Swarm are defined in a service definition file. In this definition you assemble any number of Docker images, each forming a component, according to your needs. To deploy a service, first, you use a Docker client or a CI/CD pipeline to create and deploy Docker images. Then you use Giant Swarm’s client software or our API to start the creation and orchestration of your Docker containers on the cluster, based on your service defintition and images.

like image 132
Kerem Avatar answered Sep 28 '22 08:09

Kerem