skip to Main Content

I am trying to add ssl certificates to my container. Is there any specific location to add these certificates for example /etc/selenoid?

Because the certificates are not being recognized.

Tried using the –volume command

docker run –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.

Using 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

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?

Still getting connection refused error while trying to access this container

2

Answers


  1. Chosen as BEST ANSWER

    By following this link provided by vania. I was able to add certificates

    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


  2. After starting docker you should be able to see the contents of the volume using this command:

    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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search