LoginSignup
2
1

More than 5 years have passed since last update.

Azure Docker環境構築

Last updated at Posted at 2018-08-20

Docker on Azure シリーズ

はじめに

いろんな記事をみて環境構築したがうまくいかず。
Ubuntuをクリーンインストールして、Docker公式ドキュメント通りインストールすると簡単にインストール出来ました。

参考:Docker公式ドキュメント
Get Docker CE for Ubuntu

Ubuntu Bionic 18.04 (LTS)

イメージ選択
image.png

基本設定
image.png

オプションでSSHは受信できるようにします。
image.png

IPAddressの名前を設定しておきます。
image.png

TeraTemでSSHで接続します。

New Connection
image.png
User Name & Passphraseを入力します。
image.png
コマンドラインが表示されます。
image.png

docker install(Docker公式ドキュメント通り順番に実行)

$ sudo apt-get update

$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

$ sudo apt-key fingerprint 0EBFCD88

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

$ sudo apt-get update

$ sudo apt-get install docker-ce

$ apt-cache madison docker-ce

$ sudo docker run hello-world

Hello Worldの実行結果
image.png

docker hub から他のイメージをダウンロードして実行

$ sudo docker run docker/whalesay cowsay hello world

image.png

2
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
2
1