2021年11月29日 星期一

yum localdownload and install by docker

 1. https://www.slothparadise.com/how-to-download-yum-packages-locally/ 


2. https://unix.stackexchange.com/questions/50642/download-all-dependencies-with-yumdownloader-even-if-already-installed


3. good ch

https://ephrain.net/linux-%E5%9C%A8-centos-%E4%B8%8A%E4%BD%BF%E7%94%A8-yum%EF%BC%8C%E4%B8%8B%E8%BC%89%E6%89%80%E6%9C%89%E7%9B%B8%E9%97%9C%E8%81%AF%E7%9A%84-rpm-%E5%A5%97%E4%BB%B6/


4. 

https://unix.stackexchange.com/questions/151689/how-can-i-instruct-yum-to-install-a-specific-version-of-package-x


5. good ch install docker

https://www.stepbystep.tw/blog/post/118700937-centos-7-%E5%AE%89%E8%A3%9D-docker-ce


6. rpm list

https://phoenixnap.com/kb/how-to-install-rpm-file-centos-linux


7. office install docker

https://docs.docker.com/engine/install/centos/


8. rpm list 

https://linuxhint.com/check-available-package-yum/



python module

 https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/88868/


https://docs.python.org/3/tutorial/modules.html#packages

2021年11月26日 星期五

drone

 1. 

https://www.tpisoftware.com/tpu/articleDetails/1884

https://ithelp.ithome.com.tw/articles/10240360

https://blog.wu-boy.com/2021/08/drone-license/

docker compose can commuicate

 1  

Day8 不同yml檔,也可以讓容器彼此都能溝通


只要網段一致,即可直接呼叫IP或容器名稱。因此,這邊示範如何在不同的容器中,讓他們有相同的網段。


https://ithelp.ithome.com.tw/articles/10218037

2021年11月23日 星期二

python go to pypi

 1.  打包python module 到PYPI 上


git learning

 1. https://w3c.hexschool.com/git/7b64aa34

2. https://git-scm.com/book/zh-tw/v2/Git-%E5%9F%BA%E7%A4%8E-%E5%8F%96%E5%BE%97%E4%B8%80%E5%80%8B-Git-%E5%80%89%E5%84%B2



2021年11月22日 星期一

solve: docker network can container access the localhost by host mode

 1.  

Lastly, under Linux you can run your container in the host network namespace by setting --net=host; in this case localhost on your host is the same as localhost inside the container, so containerized service will act like non-containerized services and will be accessible without any additional configuration.


docker-compose-running-containers-in-nethost

how-to-access-host-port-from-docker-container

2. other

iptables -A INPUT -i docker0 -j ACCEPT


3. ipforward

作業系統擁有 IP轉發(英語:IP forwarding功能,意味著該系統能接收從接口傳送進來的 網絡數據包(英語:network packets),如果識別到該數據包不用於該系統自身,那麼系統將會將該網絡數據包傳送到另外一個網絡去,用恰當地方式轉發該數據包。[1]

一個典型的場景是需要去搭建一個路由器以連接兩個不同網絡。


4. more discuss

https://ithelp.ithome.com.tw/articles/10206725