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

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

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

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

User tags

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