简体   繁体   English

硒鼓 Docker ssl 证书

[英]Selenoid Docker ssl certificates

I am trying to add ssl certificates to my container.我正在尝试将 ssl 证书添加到我的容器中。 Is there any specific location to add these certificates for example /etc/selenoid?是否有任何特定位置可以添加这些证书,例如 /etc/selenoid?

Because the certificates are not being recognized.因为证书没有被认可。

Tried using the --volume command尝试使用 --volume 命令

docker run --volume /etc/folder_location:/etc/selenoid docker 运行 --volume /etc/folder_location:/etc/selenoid

When I do a docker inspect the volumes parameter is "null" and the mounts parameter does not have the location of the certificates.当我执行 docker 检查时,volumes 参数为“null”并且 mounts 参数没有证书的位置。

Using CentOS.使用 CentOS。 Please Advise.请指教。

UPDATE: By referring to the link provided in the comments section by Vania, I am trying to add the.pem.cer files while starting the docker更新:通过参考 Vania 在评论部分提供的链接,我试图在启动 docker 时添加.pem.cer 文件

docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${HOME}:/root -e OVERRIDE_HOME=${HOME} -e ROOT_CA_SELENOID_CA_CERTS aerokube/cm:latest selenoid start --port 4444 

Is there any way to verify that the security certificates are properly added to the selenoid container?有什么方法可以验证安全证书是否已正确添加到 selenoid 容器中?

Still getting connection refused error while trying to access this container尝试访问此容器时仍然出现连接被拒绝错误

After starting docker you should be able to see the contents of the volume using this command:启动 docker 后,您应该能够使用以下命令查看卷的内容:

docker exec -it <container> ls <location of volume>

For your case:对于您的情况:

docker exec -it <container> ls /etc/selenoid

You could also run the "sh" or "bash" command to gain access to the containers bash shell.您还可以运行“sh”或“bash”命令来访问容器 bash shell。

By following this link provided by vania.通过遵循 vania 提供的此链接。 I was able to add certificates我能够添加证书

https://aerokube.com/images/latest/#_adding_custom_root_certification_authority https://aerokube.com/images/latest/#_adding_custom_root_certification_authority

docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${HOME}:/root -e OVERRIDE_HOME=${HOME} -e ROOT_CA_SELENOID_CA_CERTS aerokube/cm:latest selenoid start --port 4444 docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${HOME}:/root -e OVERRIDE_HOME=${HOME} -e ROOT_CA_SELENOID_CA_CERTS aerokube/cm:latest selenoid start --端口 4444

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM