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

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

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

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

User tags

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