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

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

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

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

User tags

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