Tips作業メモ
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[Tips作業メモ]]
* conoHaVPSでサーバー構築 [#oc7432d3]
1。vpsサーバーの新規作成
2。sshの設定
3。クライアント側のsshのconfig設定
configの内容
Host conoHaVPS1
HostName 150.95.175.99
User root
IdentityFile ~/.ssh/myKeys/conoHaCommonKey/2020030701...
このままだと、警告が出るので、鍵ファイルのパーミッション...
hmod 600 ~/.ssh/myKeys/conoHaCommonKey/20200307015008.pem
----------------------------
dnf upgrade && dnfupdate
dnf repolist
dnf config-manager --add-repo https://download.docker.co...
dnf repolist
・間違えた時は
dnf config-manager --disable http://download.docker.com_li
dnf -y install docker-ce docker-ce-cli containerd.io
うまくいかない時は、個別ダウンロード
wget https://download.docker.com/linux/centos/7/x86_64/s...
wget https://download.docker.com/linux/centos/7/x86_64/s...
古いのは削除
dnf remove containerd.io
dnf install containerd.io-1.2.13-3.1.el7.x86_64.rpm
dnf install -y docker-ce docker-ce-cli
dnf install -y git
------------------------------------
1. docker log in
docker run -it [image name] /bin/bash
* -u [user name] で起動時のユーザー指定可能
2. dockerイメージをtar.gz形式で保存する
docker save [image name] > [file name].tar.gz
3.tar.gz形式のdockerイメージを取り込む
docker load < [file name].tar.gz
4. docker image copy(タグ名変更)
docker tag [target image: tag] [変更後イメージ名: タグ]
5. 起動中のコンテナにログイン
docker exec -it [コンテナID] bash
6. 起動中コンテナにホストからファイルコピー
docker cp [Host File Path] [containner ID]:[new Containn...
7. 起動中のコンテナをイメージとして保存
docker run -p [外部ポート]:[コンテナポート]
*
curl -L "https://github.com/docker/compose/releases/down...
chmod +x /usr/local/bin/docker-compose
usermod -G wheel docker
brew install ansible
xcode-select --install
https://qiita.com/mizutoki79/items/daad6aa30e6f1cce7ac9
------------------------------------
* Name [#u9ef1cf5]
* Contents [#yd716ece]
#contents
* What's XX [#e3b715ba]
XX is ~
* Discribe [#sa4dc112]
XX discribe is ~
example.
XXX = XX + X
* 1. [#z87969b8]
** 1.1. [#cc06dc86]
*** 1.1.1 [#u341541e]
+ ①
++ ②
+++ ③
- ・1
-- ・2
--- ・3
| | |h
| | |
| | |
----
[[kiji-template]]
* Name
* Contents
#contents
* What's XX
XX is ~
* Discribe
XX discribe is ~
example.
XXX = XX + X
* 1.
** 1.1.
*** 1.1.1
+ ①
++ ②
+++ ③
- ・1
-- ・2
--- ・3
| | |h
| | |
| | |
----
終了行:
[[Tips作業メモ]]
* conoHaVPSでサーバー構築 [#oc7432d3]
1。vpsサーバーの新規作成
2。sshの設定
3。クライアント側のsshのconfig設定
configの内容
Host conoHaVPS1
HostName 150.95.175.99
User root
IdentityFile ~/.ssh/myKeys/conoHaCommonKey/2020030701...
このままだと、警告が出るので、鍵ファイルのパーミッション...
hmod 600 ~/.ssh/myKeys/conoHaCommonKey/20200307015008.pem
----------------------------
dnf upgrade && dnfupdate
dnf repolist
dnf config-manager --add-repo https://download.docker.co...
dnf repolist
・間違えた時は
dnf config-manager --disable http://download.docker.com_li
dnf -y install docker-ce docker-ce-cli containerd.io
うまくいかない時は、個別ダウンロード
wget https://download.docker.com/linux/centos/7/x86_64/s...
wget https://download.docker.com/linux/centos/7/x86_64/s...
古いのは削除
dnf remove containerd.io
dnf install containerd.io-1.2.13-3.1.el7.x86_64.rpm
dnf install -y docker-ce docker-ce-cli
dnf install -y git
------------------------------------
1. docker log in
docker run -it [image name] /bin/bash
* -u [user name] で起動時のユーザー指定可能
2. dockerイメージをtar.gz形式で保存する
docker save [image name] > [file name].tar.gz
3.tar.gz形式のdockerイメージを取り込む
docker load < [file name].tar.gz
4. docker image copy(タグ名変更)
docker tag [target image: tag] [変更後イメージ名: タグ]
5. 起動中のコンテナにログイン
docker exec -it [コンテナID] bash
6. 起動中コンテナにホストからファイルコピー
docker cp [Host File Path] [containner ID]:[new Containn...
7. 起動中のコンテナをイメージとして保存
docker run -p [外部ポート]:[コンテナポート]
*
curl -L "https://github.com/docker/compose/releases/down...
chmod +x /usr/local/bin/docker-compose
usermod -G wheel docker
brew install ansible
xcode-select --install
https://qiita.com/mizutoki79/items/daad6aa30e6f1cce7ac9
------------------------------------
* Name [#u9ef1cf5]
* Contents [#yd716ece]
#contents
* What's XX [#e3b715ba]
XX is ~
* Discribe [#sa4dc112]
XX discribe is ~
example.
XXX = XX + X
* 1. [#z87969b8]
** 1.1. [#cc06dc86]
*** 1.1.1 [#u341541e]
+ ①
++ ②
+++ ③
- ・1
-- ・2
--- ・3
| | |h
| | |
| | |
----
[[kiji-template]]
* Name
* Contents
#contents
* What's XX
XX is ~
* Discribe
XX discribe is ~
example.
XXX = XX + X
* 1.
** 1.1.
*** 1.1.1
+ ①
++ ②
+++ ③
- ・1
-- ・2
--- ・3
| | |h
| | |
| | |
----
ページ名: