2017年1月18日 星期三

Docker in mac hostconfig.json

https://www.softwareab.net/wordpress/docker-macosx-modify-hostconfig-existing-container/

screen /Users/#USER/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty

cd /var/lib/docker/containers/${container_hash}/hostconfig.json

to reset docker

http://stackoverflow.com/questions/19335444/how-to-assign-a-port-mapping-to-an-existing-docker-container

1) stop the container 
2) change the file
3) restart your docker engine (to flush/clear config caches)
4) start the container

node.js ruby grunt project

http://gruntjs.com/getting-started


1. npm install
2. npm run build-local

2017年1月6日 星期五

VM centos eth0 not found

Ref:http://www.ntueees.tp.edu.tw/wordpress/?p=454



部署完LINUX OS啟動後會出現下列error:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization [FAILED]
修改設定如下:
1. 將ESXI分配的MAC keyin到ifcfg-eth0
2.刪除/etc/udev/rules.d/70-persistent-net.rules
3.reboot