-
Is it possible to dynamically mount directories? Let's say the container-ssh host has a directory containing multiple subdirectories. I would like to set up that every container is dynamically mounted to a different sub-directory on the host based on e.g username. Thanks for the reply. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @axeII , Yes, the configuration server concept lets you do that. You will need to write a configuration server and configure it in ContainerSSH as described here. This configuration server then needs to return a config structure that tells the backend to mount the specified directory. With the Docker backend for example, the webhook response would look like this: {
"config": {
"docker": {
"execution": {
"host": {
"binds": [
"/home/foo:/home/foo"
]
}
}
}
}
} You can find more information about the possible Docker options here and about the Kubernetes options here. Please let us know if you have more questions. |
Beta Was this translation helpful? Give feedback.
Hello @axeII ,
Yes, the configuration server concept lets you do that. You will need to write a configuration server and configure it in ContainerSSH as described here. This configuration server then needs to return a config structure that tells the backend to mount the specified directory.
With the Docker backend for example, the webhook response would look like this:
You can find more information about the possible Docker options here and about the Kubernetes options here.
Please let us know if you have more questions.