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

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

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

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

User tags

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