2020년 3월 20일 금요일

docker-compose error (Unable to enable NAT rule)

$ docker-compose up -d
Creating network "chapter04_default" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.21.0.0/16 ! -o br-8cbf06e4b2c9 -j MASQUERADE: iptables: No chain/target/match by that name.
 (exit status 1))

[Fix]
$ sudo vi /etc/docker/daemon.json
{
    "iptables":false
}

and then..

restart dockerd

2020년 3월 18일 수요일

docker daemon is not running in WSL Ubuntu

1. Launch WSL with admin priviledge
2. su - root
3. dockerd

2020년 3월 17일 화요일

Setting or change WSL root password

1. Open PowerShell Console
2. Comand
PS C:\Users\holyx> wsl -u root
root@LAPTOP-EEH80F78:/mnt/c/Users/holyx#
root@LAPTOP-EEH80F78:/mnt/c/Users/holyx# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

2020년 3월 16일 월요일

Google Cloud SDK 설치


download & install : https://cloud.google.com/sdk/docs/quickstart-windows
Set Seoul Region / Zone : asia-northeast3-a

install jdk8 on Ubuntu

$ sudo apt install openjdk-8-jdk
$ java -version

Install for Ubuntu 18.04 LTS on Windows10 ( WLS )

1. 관리자 권한으로 PowerShell 실행
2. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 실행
3. https://www.microsoft.com/ko-kr/p/ubuntu-1804-lts/9n9tngvndl3q?rtc=1&activetab=pivot:overviewtab
4. Download & Install
5. Launch & Create Account / Password

2020년 3월 15일 일요일

Install Springboot CLI on Ubuntu

0. PreRequisite
 $ sudo apt install unzip
 $ sudo apt install zip

1. Install SDKMAN

$ curl -s https://get.sdkman.io | bash
$ source ~/.bashrc

2. Install SpringBoot
$ sdk install springboot
$ spring version

$ spring init \
     --boot-version=2.1.0.RC1  \
     --build=gradle \
     --java-version=1.8 \
     --packaging=jar \
     --name=product-service  \
     --package-name=se.magnus.microservices.core.product \
     --groupId=se.magnus.microservices.core.product \
     --dependencies=actuator,webflux  \
     --version=1.0.0-SNAPSHOT \
     product-service

2020년 3월 14일 토요일

fix for VirtualBox Shared Folder fs type error

$ sudo mount -t vboxsf share /mnt/share
mount: /mnt/share: wrong fs type, bad option, bad superblock on share, missing codepage or helper program, or other error.

$ sudo apt-get install virtualbox-guest-utils

$ sudo mount -t vboxsf share /mnt/share

2020년 1월 4일 토요일

Starting Vue web pack Project

* Prerequisite : install node.js

$ npm install vue-cli -global  // install vue client
$ mkdir test-vue-project
$ vue init webpack-simple

$ npm install
$ npm run dev

$ vi index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
    <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
    <title>Basic vue index.html</title>
  </head>
  <body>
    <div id="app"></div>
    <script src="/dist/build.js"></script>
  </body>
</html>

2019년 8월 11일 일요일

CNI

 kubernetes CNI (Container Network Interface) : Calico, Canal, Flannel, Kube-router, Romana, Weave Net 등의 컨테이너 네트워크