-
Recent Posts
Archives
- July 2020
- April 2020
- February 2020
- January 2020
- December 2019
- November 2019
- August 2019
- July 2019
- June 2019
- May 2019
- February 2019
- January 2019
- November 2018
- October 2018
- September 2018
- August 2018
- June 2018
- May 2018
- April 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- September 2016
- August 2016
- March 2016
- December 2015
- November 2015
- October 2015
- September 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- November 2014
- October 2014
- September 2014
- August 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
Categories
Monthly Archives: February 2017
docker networking example
docker.network 1. List the docker network. # docker network ls NETWORK ID NAME DRIVER SCOPE 82f0e82e8a52 bridge bridge local 2f29f6c3dc07 host host local 0ee77fd0eaf6 none null local 2. List the bridge’s address. # ifconfig docker0 | grep “inet ” inet … Continue reading
Posted in Uncategorized
Leave a comment
docker remove all containers and images
docker rm -f $(docker ps -a -q) docker rmi $(docker images -q)
Posted in Uncategorized
Leave a comment
docker shared storage
In the following example we create a volume in a container and share the volume with other containers. 1. Share a docker volume – create the volume in a container that you do not run docker create -v /webdata –name … Continue reading
Posted in Uncategorized
Leave a comment
linux yum groups
Create a file in the groups format used by yum Tell createrepo to include that group file in your repository. Step 1 You can either open a text editor and create the groups xml file manually or you can run … Continue reading
Posted in Uncategorized
Leave a comment
linux strace examples
strace is a systemcall tracer. It tells you what kernel functions are called as a result of your program. It monitors systemcalls and signals. strace -p strace (trace a systemcall) strace -e open (trace multiple systemcalls) strace -e trace=open,read ls … Continue reading
Posted in Uncategorized
Leave a comment
docker – remove all containers and images
#!/bin/bash # Delete all containers docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q)
Posted in Uncategorized
Leave a comment
linux grow rootfs
Grow xfs rootfs The root volumegroup in this example is centos, the disk in the volumegroup is sda. We add a new disk, extend the group, extend the logical volume and grow the filesystem. add new disk. (in vmware: edit … Continue reading
Posted in Uncategorized
Leave a comment
linux PS1 settings
Information you can display with PS1 link: cyberciti \a : an ASCII bell character (07) \d : the date in “Weekday Month Date” format (e.g., “Tue May 26”) \D{format} : the format is passed to strftime(3) and the result is … Continue reading
Posted in Uncategorized
Leave a comment
linux parameter expansion
from: wiki Simple usage $PARAMETER ${PARAMETER} Indirection ${!PARAMETER} Case modification ${PARAMETER^} ${PARAMETER^^} ${PARAMETER,} ${PARAMETER,,} ${PARAMETER~} ${PARAMETER~~} Variable name expansion ${!PREFIX*} ${!PREFIX@} Substring removal (also for filename manipulation!) ${PARAMETER#PATTERN} ${PARAMETER##PATTERN} ${PARAMETER%PATTERN} ${PARAMETER%%PATTERN} Search and replace ${PARAMETER/PATTERN/STRING} ${PARAMETER//PATTERN/STRING} ${PARAMETER/PATTERN} ${PARAMETER//PATTERN} String length … Continue reading
Posted in Uncategorized
Leave a comment