Quantcast
Channel: Martin Fournier
Browsing all 23 articles
Browse latest View live

How to store the result of a linux command into a variable

myvariable=`docker ps -a | grep mysql | awk ‘{print $1}’`echo $myvariable The post How to store the result of a linux command into a variable appeared first on Martin Fournier.

View Article


How to delete all the docker containers that are stopped

docker rm `docker ps -a | grep Created | awk '{print $1}'` The post How to delete all the docker containers that are stopped appeared first on Martin Fournier.

View Article


Use mysql with docker expose port and share data folder

I don’t know why this is not in the list of examples on the mysql website. One of the first thing I want to know is if mysql is up and running and be able to connect to it using a mysql client like...

View Article
Browsing all 23 articles
Browse latest View live