如何设置 zalenium 音量 accessModes:ReadWriteMany
How to set zalenium volume accessModes:ReadWriteMany
我是 docker 的新手。我想与 zalenium 共享文件,但如何通过 accessModes:ReadWriteMany?
我的测试用例需要文件上传。
我 运行 zalenium 如下所示
docker run --rm -ti -d --name zalenium -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock -v /d/Zalanium/:/home/seluser/videos -v /d/shared_folder:/data --privileged dosel/zalenium start --videoRecordingEnabled false
我有一个文件要与 zalenium 容器共享。
我的共享文件夹:-v /d/shared_folder:/data
当我查看 zalenium 网站时,他们提到了共享文件夹
Like the Docker version of Zalenium, the Kubernetes version can automatically mount shared folders, the only catch is that when you are using persistent volumes you need to make sure that the Access Mode is set to ReadWriteMany, otherwise the selenium nodes will not be able to mount it.
我还没有找到任何例子。
谢谢你提前。
答案写在 zalenium 网站上。我错过了那部分。
答案如下:
This is a collection of folders that you can mount as volumes when starting Zalenium by prefixing the destination with /tmp/node/, and it will be mapped across all the docker-selenium containers from the root folder after stripping the /tmp/node/ prefix.
例如,挂载:-v /your/local/folder:/tmp/node/home/seluser/folder 将映射到节点上的 /home/seluser/folder。
这可用于为您的节点提供进一步的自定义,例如为您的浏览器添加客户端证书,或模仿之前的多用途文件夹,如下所示。
我是 docker 的新手。我想与 zalenium 共享文件,但如何通过 accessModes:ReadWriteMany?
我的测试用例需要文件上传。
我 运行 zalenium 如下所示
docker run --rm -ti -d --name zalenium -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock -v /d/Zalanium/:/home/seluser/videos -v /d/shared_folder:/data --privileged dosel/zalenium start --videoRecordingEnabled false
我有一个文件要与 zalenium 容器共享。
我的共享文件夹:-v /d/shared_folder:/data
当我查看 zalenium 网站时,他们提到了共享文件夹
Like the Docker version of Zalenium, the Kubernetes version can automatically mount shared folders, the only catch is that when you are using persistent volumes you need to make sure that the Access Mode is set to ReadWriteMany, otherwise the selenium nodes will not be able to mount it.
我还没有找到任何例子。
谢谢你提前。
答案写在 zalenium 网站上。我错过了那部分。
答案如下:
This is a collection of folders that you can mount as volumes when starting Zalenium by prefixing the destination with /tmp/node/, and it will be mapped across all the docker-selenium containers from the root folder after stripping the /tmp/node/ prefix.
例如,挂载:-v /your/local/folder:/tmp/node/home/seluser/folder 将映射到节点上的 /home/seluser/folder。
这可用于为您的节点提供进一步的自定义,例如为您的浏览器添加客户端证书,或模仿之前的多用途文件夹,如下所示。