Skip to content

Instantly share code, notes, and snippets.

View isratmir's full-sized avatar
🍔
Focusing

Kozhomuratov Ulan isratmir

🍔
Focusing
  • Kyrgyzstan, Bishkek
View GitHub Profile
@isratmir
isratmir / docker-help.md
Created September 11, 2018 14:59 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

# Tweaked from http://tomislavsantek.iz.hr/2011/03/moving-mysql-databases-to-ramdisk-in-ubuntu-linux
# Log in as root
# Mount ramdisk folder in RAM
mkdir /tmp/ramdisk
mount -t tmpfs -o size=128M tmpfs /tmp/ramdisk/
# Move MySQL data
mv /var/lib/mysql /tmp/ramdisk/mysql
ln -s /tmp/ramdisk/mysql/ /var/lib/mysql