CoreOSをインストールする

Posted by onodai.


Docker使いたい

CoreOS is なに

CoreOS is an open-source lightweight operating system based on the Linux kernel and designed for providing infrastructure to clustered deployments, while focusing on automation, ease of applications deployment, security, reliability and scalability.

Docker is なに

Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux.

詳しいことはぐぐってください^q^

CoreOSのインストール

  • 今回は物理サーバにインストールしました
    1. インストールメディアでブートする
    2. 自動でcoreというユーザでログインされる
    3. このままコンソールで操作するのは設定ファイルの編集とかが面倒なのでSSH接続できるように設定する
    4. いまログインしているcoreユーザに対してパスワードを設定
      $ sudo passwd core
    5. IPアドレスの確認
      $ ip addr show
    6. DHCP環境でない場合はIPアドレスの設定とDNSサーバの設定
      $ sudo ip addr add x.x.x.x/x dev enp0s25  
      $ sudo ip route add default via x.x.x.x dev enp0s25  
      $ sudo /etc/resolv.conf  
    7. ほかの端末からSSHで接続する
    8. 「cloud-config.yml」の作成
      $ vi cloud-config.yml
    9. インストール
      $ sudo coreos-install -d /dev/sda -C stable -c cloud-config.yml
    10. 少し待ってSuccess!と表示されたらインストール完了
      Installing cloud-config...  
      Success! CoreOS stable 766.4.0 is installed on /dev/sda
    11. 再起動して作成したユーザでSSH接続できることを確認

これからガシガシコンテナ作っていこうと思います

comments powered by Disqus