If I want to change the root directory for docker images, I can have the below /etc/docker/daemon.json file.
- {
- "data-root" : "/my/path/to/docker/images"
- }
If I want to change the root directory for docker images, I can have the below /etc/docker/daemon.json file. Before doing these changes, stop docker by
$ sudo systemctl stop docker
Then update the /etc/dicker/daemon.json file
And then:
$ sudo systemctl start docker
If I want to kill all the bash process except the current bash process, use the below the below bash function:
- kallbatch() {
- for i in ` ps -ef | grep bash | grep -v grep | grep -v libexec | awk ' { print $2 } ' `
- do
- if [ $$ -ne $i ] ; then
- sudo kill -9 $i
- fi
- done
- }