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

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