Docker Community Forums

Share and learn in the Docker community.

Connect to specific container based on its name or id persistently

I wish to know how to connect to specific container based on its name or id persistently?

Here is my environment. User will log in on web portal and java web application will create a container in background and set environment variables in that container instances.Now, this container should get assigned persistently to the user who created this container with its own env variable. While it possible to achieve creation of container and setting of env variables, but how to assign that container to its creator persistently as it may get assigned to other web users of portal ?