docker : 容器,輕量級系統。只需將image鏡像加入下載並運行即可形成容器
重量級虛擬系統
sudo su
sudo apt-get update //更新軟體資料庫
sudo apt-get install ca-certificates curl //安全性
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \\
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] <https://download.docker.com/linux/ubuntu> \\
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \\
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
//安裝
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
//docker tool - docker compose
curl -L "[<https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname](https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname)> -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && docker-compose --version
//檢查
docker --version
docker-compose --version
docker run -it hello-world //dockerhub : 放鏡像的地方
//AI模型 - dialoqbase
git clone [<https://github.com/n4ze3m/dialoqbase.git>](<https://github.com/n4ze3m/dialoqbase.git>)
//OpenAI
<https://platform.openai.com/playground/chat?models=gpt-3.5-turbo-16k&via=aiwizard>
Install Docker Engine on Ubuntu
Docker Hub Container Image Library | App Containerization