LoginSignup
1
1

More than 3 years have passed since last update.

[備忘録]Dockerコマンド

Last updated at Posted at 2019-05-08

server接続

ssh makimatsun

Dockerコマンド

dockerビルド docker build -t sync-sheet .
dockerイメージセーブ docker save sync-sheet > sync-sheet.tar
dockerイメージコピー scp sync-sheet.tar makimatsundocker:~/
現在のprocess確認 docker ps
goを編集した場合は GOOS=linux GOARCH=amd64 go build main.go

Linuxコマンド

強制的に sudo
管理者権限 chmod 755 backup.sh
解凍 gzip -d pdb_2019-05-07_015204.sql.gz
サービス有効 sudo systemctl enable dbbackup.service
サービス状態 sudo systemctl status dbbackup.service
サービス開始 sudo systemctl start dbbackup.service

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1