十一月 2024
 123
45678910
11121314151617
18192021222324
252627282930  

彙整

新北市教育局程式應用研發社群工作坊:Docker(1061018)

日期:106年10月18日下午 1:30 – 4:30

地點:教研中心電腦教室

主題:Docker

講師:林士立老師

上課教材:http://bit.ly/t301000-docker-script

Docker Container 安裝演練過程

ubuntu 前置作業

查看網卡 ip

ifconfig

設定固定 ip

https://www.linuxhint.com/change-from-dhcp-to-static-ip-address-ubuntu/

  1. sudo vi /etc/network/interfaces
iface enp0s3 inet static
address 192.168.0.55
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 168.95.192.1 8.8.8.8
  1. reboot

=================================

強制 apt 走 ipv4

https://www.vultr.com/docs/force-apt-get-to-ipv4-or-ipv6-on-ubuntu-or-debian

sudo vi /etc/apt/apt.conf.d/99force-ipv4

Acquire::ForceIPv4 true;

=================================

建議安裝:

sudo apt install unzip git vim

=================================

安裝 docker

https://get.docker.com

curl -fsSL get.docker.com -o get-docker.sh

sh get-docker.sh

sudo usermod -aG docker your_user

重新登入

查看 docker 版本

docker -v

docker version

=================================

安裝 docker-compose

https://docs.docker.com/compose/install/

https://github.com/docker/compose/releases

curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > docker-compose

chmod +x docker-compose

sudo mv docker-compose /usr/local/bin/docker-compose

查看 docker-compose 版本

docker-compose -v

docker-compose version

=================================

Docker —— 從入門到實踐

https://www.gitbook.com/book/philipzheng/docker_practice/details

Docker 基本教學 – 從無到有

https://github.com/twtrubiks/docker-tutorial

修行道場

https://www.katacoda.com/

=================================

https://hub.docker.com/

http://laradock.io/

https://portainer.io/

http://bit.ly/t301000-docker-script

http://labs.play-with-docker.com/

 

Comments are closed.