- Open a webpage that uses the CA with Firefox
- Click the lock-icon in the addressbar -> show information -> show certificate
- the certificate viewer will open
- click details and choose the certificate of the certificate-chain, you want to import to CentOS
- click "Export..." and save it as .crt file
- Copy the .crt file to
/etc/pki/ca-trust/source/anchorson your CentOS machine
- test it with
Run commands on remote Docker host
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
Enable Docker Remote API
First be sure to enable the Docker Remote API on the remote host.
Using Windows Subsystem for Linux combined with Docker for Windows
Docker CE for Windows
- Install Docker CE for Windows
- Go to Docker for Windows Settings -> General and enable
Expose daemon on tcp://localhost:2375 without TLS.
This will enable the Docker remote API for requests, coming from localhost, not from another computer in your network. A TLS secured version is not yet supported in Docker for Windows. See https://github.com/docker/for-win/issues/453 for more information. I also tried a daemon.json file with options tlscacert, tlscert, tlskey and tlsverify, but Docker for Windows crashed on booting.
Install Windows Subsystem for Linux (WSL)
- Enable Developer Mode as described in Enable your device for development
- Install WSL by running the following in Powershell as Administrator: `E
|RUN echo "Europe/Berlin" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata|
|RUN mkdir /data|
|ADD myapp.jar /data/myapp.jar|
|ENV springprofiles="" \|
|ENTRYPOINT MAXRAM=$(expr `cat /sys/fs/cgroup/memory/memory.limit_in_bytes` / 1024 / 1024) && \|
This is how to install something in a VM and export it as a Vagrant box and use it locally.
First copy the Vagrantfile from below and change the box to the box you want as a base.
vagrant up to create the Virtual Machine and
vagrant ssh to login.
On Windows you might have to put ssh.exe to your %PATH%. If you have installed git, you can use C:\Program Files\Git\usr\bin You can also login via Putty on host: "localhost", Port "2222", login: "vagrant", password: "vagrant".
|mkdir -v --parents $DIR|
|#https://get.docker.com/builds/Linux/i386/docker-latest.tgz | tar xvz --directory $DIR|
|curl https://download.docker.com/linux/static/edge/x86_64/docker-17.11.0-ce.tgz | tar xvz --directory $DIR|
|mv -v $DIR/docker/docker /usr/local/bin/docker|
|chmod +x /usr/local/bin/docker|
Postgres DB with point in time recovery with pitrery
Not yet tested
This image is based on docker's official postgres image. See here for usage information.
Remove or replace the timezone settings in this Dockerfile with your timezone. Currently
"Europe/Berlin" is set.
The pitrery backup directory is