See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.json
file in/etc/docker
:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
Visual Studio 2019 Product Key | |
[Please Star this gist] | |
Follow My Account --> https://github.com/ch-kashif @ch-kashif | |
Lets do a code together | |
Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk | |
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json
file in /etc/docker
:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
Use this method if you want to use HTTPS (HTTP over TLS) to secure your Apache HTTP or Nginx web server, and you want to use a Certificate Authority (CA) to issue the SSL certificate. The CSR that is generated can be sent to a CA to request the issuance of a CA-signed SSL certificate. If your CA supports SHA-2, add the -sha256 option to sign the CSR with SHA-2.
Creating a 2048-bit private key (domain.key) and a CSR (domain.csr) from scratch:
openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr
Creating a 2048-bit private key and public key
#!/bin/bash | |
echo "I: " | |
echo "I: installing dependencies....." | |
yum install -y epel-release | |
yum remove python-docker-py | |
yum install -y yum-utils device-mapper-persistent-data lvm2 ansible git python3-devel python3-pip python3-docker-py vim-enhanced |
Preconditions:
- POSIX or Windows system
- Install Docker
- A GitHub repo that already builds on Travis
Postcondition:
#!/bin/sh | |
ORIGIN="serverA" | |
MIRROR="serverB" | |
SYNC_USER="git" | |
ORIGIN_REPO_ROOT="/home/$SYNC_USER/repositories" | |
MIRROR_REPO_ROOT="/home/$SYNC_USER/repositories" | |
LOGFILE=$ORIGIN_REPO_ROOT/gitsync.log | |
reponame=$(basename $(pwd)) |
Instalar Docker 1.12 no Linux: | |
- sudo su | |
- curl -fsSL https://experimental.docker.com/ | sh | |
Instalar Docker-machine v0.8.0 no Linux: | |
- curl -L https://github.com/docker/machine/releases/download/v0.8.0-rc2/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine | |
- chmod +x /usr/local/bin/docker-machine | |
Criar VM's com Docker Engine: | |
- docker-machine create -d virtualbox master |
This is a collection of books that I've researched, scanned the TOCs of, and am currently working through. The books are selected based on quality of content, reviews, and reccommendations of various 'best of' lists.
The goal of this collection is to promote mastery of generally applicable programming concepts.
Most topics are covered with Python as the primary language due to its conciseness, which is ideal for learning & practicing new concepts with minimal syntactic boilerplate.
JavaScript & Kotlin are listed in the Tooling
section; as they allow extension of VS Code
and the IntelliJ
suite of IDEs, which cover most development needs.
The GCC distributed with CentOS 6 is 4.4.7, which is pretty outdated. I'd like to use gcc 4.8+. Also, when trying to install Linuxbrew you run into a dependency loop where Homebrew's gcc depends on zlib, which depends on gcc. Here's how I solved the problem.
Note: Requires sudo
privileges.