Moving a docker container to a new host without dockerhub

I'm getting started using docker for somethings. I needed to move a container from a test machine to a new production home. This is how I did it. If there is a better way, please let me know! I ran this where the machine was in development: sudo docker export…

TMUX Cheat Sheet

Years ago I started taking advantage of tmux - the terminal multiplexer. Like screen, it'll let you run multiple terminals, and your program will stay running when you leave it or lose SSH connections. Session Management New session tmux new New session with name tmux new -s sessio¬≠nname List…

Reset password for SQL server on Centos 7

I have a development instance of mssql that I keep forgetting the damn password on. It sure is a good thing it's easy to reset :) Run the following commands as root. # stop mssql-server systemctl stop mssql-server # set sa password: [root@ms-sql ~]# /opt/mssql/bin/mssql-conf set-sa-password Enter the SQL Server…

mysqldump to another host using ssh

Sometimes you will find yourself on a machine without space to dump the database locally, you can get around this limitation using mysqldump piped over ssh. mysqldump -uuser -ppass -hhostname database | gzip -c | ssh user@host 'cat > ~/dump.sql.gz'…

Installing killall command Centos 7

If the killall command seems to be missing from your centos 7 machine, it can be installed using the following command: yum -y install psmisc now you should be able to use killall. Thanks for stopping!…