Install docker on Centos 7

Installing

https://docs.docker.com/engine/installation/linux/docker-ce/centos/

sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager \
    --add-repo \
    <a href="https://download.docker.com/linux/centos/docker-ce.repo<br />
sudo" title="https://download.docker.com/linux/centos/docker-ce.repo<br />
sudo">https://download.docker.com/linux/centos/docker-ce.repo<br />
sudo</a> yum makecache fast
sudo yum install -y docker-ce
sudo systemctl start docker
sudo systemctl enable docker

Optional

firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --reload

Облегчаем docker контейнеры

Иногда требуется сократить использование RAM, например на слабых хостингах, в тестовых средах или для локальной разработки.

Для сокращения использования памяти контейнерами mysql, mariadb можно добавить "--innodb-buffer-pool-size=64m" к запуску. Например для docker-compose:

  db:                                                                                             
    image: mariadb:10.1
    ...                                                                          
    command: --innodb-buffer-pool-size=64m

User tags

debootstrap docker-compose slab groups tiger SpamAssassin PXE .htaccess flash opreport mariadb arch fido7 zRam radeon xen hotplug rpm pulseaudio taskset exim pvmove perl php cache idmapd backtrace SYN tool source OpenStack iops initrd oprofile chromium fail2ban profiling netfilter mysql tftp tar encrypt xfs ipmitool bug kernel centos 7 lstat core dump in-addr.arpa CentOS vrrpd wget rkhunter iSCSI gtk docker rtsp replication virt-install HDFS APU OpenSSL nfs4 munin ubuntu qcow2 backup LVM scsi iostat gre su virsh storage arp bridge dhclient graylog2 cfq iowait ssh newgrp asoundrc sysctl grub security erase cpu build apache virtualbox DRBD PTR limit_conn freedos arping dpkg git MegaRAID Swift keyboard Salt dstat tzdata nvidia vim Adaptec debian sftp mkfs vtysh bscan video puppet bash SSD firefox alien iptables sysresccd mdadm sg rsync xargs leap second find ansible lts LSI sublime bind Areca gdb corosync sysrq xhost glxinfo CPAN htop shorewall ha youtube perlbrew cgroups HTTPS vrrp alsa tin boot ddos java sysfs KVM shellshock raid5 routing pacemaker lenny /etc/network/interfaces tun nginx bacula dns StorMan cpu usage gpg chroot ardour ipmi soa RT proxy etch performance MODx NFS squeeze hdparm opcontrol X forwarding jackd qemu regex lubuntu bonding dhcp vlan sysctl.conf lxc deb usb SuperMicro numa pam ps quagga elliptics raid ip parallel glusterfs apt cluster drupal equalizer openvpn conntrack search exim4 dovecot mount rtl8723be top swap 3Ware fio cpanm language ulimit noop wordpress AMD route