I am facing a issue with self signed certificate and DNS record in hosts file inside docker container. We have multiple Linux servers with docker swarm running. There was a docker service where I need to copy the self signed certificate and create a DNS record manually with docker exec all the time when ever service is restarting. There was a mapped volume for the docker service. How can I map container DNS file(/etc/hosts) and /usr/local/share/ca-certificates to have these in mapped place so that there will be no issues if the container re-start.
Custom DNS record and SSL certificate in docker container
924 Views Asked by Manikumar Nune At
1
There are 1 best solutions below
Related Questions in SSL
- How to Fix TLS CBC Incorrect Padding Abuse Vulnerability on Windows 2003 Server
- SSL: Error parsing the certificate: Ok
- PHP mysqlnd sha256_password plugin "Access denied", user works from cli mysql
- CFNetwork SSLHandshake failed iOS 9
- Java does not accept 2 methods with same name
- Expected Compatibility Issues with upcoming TLS/SSL Cipher Suite update on Azure WebApps?
- python requests SSLError
- Connecting via mutual SSL fails reading incoming changeCipherSpec
- HTTP to HTTPS mapping using proxy servers
- Ruby on Windows XP: How to change directory of SSL certificates
- KeyStore file is not found in jar, although present in jar
- How do I accept a self-signed SSL certificate using iOS 7's NSURLSession
- Chef remote_file from https site with self signed certificate
- Meteor force-ssl on a staging system without ssl cert?
- Use python SSL to download google.com.au page
Related Questions in DOCKERFILE
- docker build with a template Dockerfile
- Not able to clone private repo using dockerfile
- Error getting authority in Ubuntu SDK Docker image
- Docker: how to set up file ownership in a data-only container?
- Persistent error coming from libusb0
- Use Dokku Environment variables in DockerFile
- Using docker-compose volumes_from option does not work
- How to properly set VOLUME and CMD instructions in Postgres Dockerfile?
- Dockerfile build - possible to ignore error?
- Simple docker deployment tactics
- Get the containerID, docker
- Docker: Npm install very slow in Ubuntu host
- Use programs installed on Docker base image
- Docker node development environment on windows
- Can docker compose build image from different Dockerfiles at the same folder
Related Questions in DOCKER-SWARM
- Docker Data Volume Container - Can I share across swarm
- Adding nodes on the fly with Docker Swarm
- Creating a docker swarm cluster in Vagrant
- Number of nodes appears 0 in a swarm cluster
- swarm, kubernetes or mesos for batch processing jobs
- Use senecajs with docker
- Load balancing docker swarm using Ha Proxy
- Is there any way to know the service name (swarm) from a container?
- Manage multiple nginx containers on the same host with Docker Swarm
- Is Docker global service always created first on new Swarm node?
- Docker swarm use local service instance
- How should a registry be run in a docker swarm?
- How to create docker containers with the same internal IP address?
- How can I use a docker swarm mode manager behind a floating IP
- How to restart multiple containers in a docker swarm
Related Questions in DOCKER-VOLUME
- Docker volume - need permissions to write to database
- running and sharing a host folder from a container using docker-py
- docker-compose: define mount for bind mount and managed mount
- ERROR: In file './docker-compose.yml', volume must be a mapping not a string
- Unable to mount persistent volume to Docker container using Rex-Ray and VirtualBox Media storage - "Invalid managed object reference" error
- User not created in MySQL when using docker-compose
- Docker volume storage duplication
- Storage requirement when using for AWS ECS
- Copying docker image folder between partition with rsync
- what happens when docker volume crashes?
- minikube + Docker Volumes?
- docker container unable to create directory in volume
- Docker volume mounts with empty contents with docker-compose
- Backup-friendly Docker volumes
- Mapping volume related with WORKDIR
Related Questions in CACERTS
- Importing certificate from site using Ansible java_cert
- Whatsapp Business API Registration - Acquire certificate from whatsapp buiness manager
- Can we export certificates from JRE's "cacerts" file and import it to higher JRE version?
- How to install a self signed CA certificate programmatically on Android
- Elastic Search returning null after some time
- Set custom trust store using JDK11
- How can I "diff" two cacerts files?
- Procedure to create a certificate chain recognized by java
- Custom DNS record and SSL certificate in docker container
- How can I specify a cacerts file in gradle jibDockerBuild?
- Execute CURL command with CA CERT file in JAVA
- Ingress client certificate authenticate requires CA certificate to be stored in secret?
- How to get Node.Js to allow me to provide client cert with smart card/cac
- Pentaho Kettle | Connect to HTTPS Repository (with cacerts file)
- How to handle security certificate expired scenario in the REST call?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Use docker configs.
Something like :-