Increase docker’s containers size

By default containers are limited to size 10G. I needed to increase container size. For this I added option to file /etc/docker/daemon.json:

{"storage-driver": "overlay"}

After this I restarted docker. Each container now gets total amount of space available on the mount point.

Remove line from history with grep

Today I needed to clear history from some command. I looked into history and used grep to filtering command I needed.

for i in $(history | grep something | grep -oE "[0-9]{1,} " | sort -rn); do history -d ${i}; done