---
# System prepended metadata

title: Azure Container Registry SOP

---

# Azure Container Registry SOP

---

### 雲端操作
- [ ] 建立/獲取 Azure Container Registry 服務  
  > 設定 --> 存取金鑰 --> 啟用  
  > 獲得 username & password  

![](https://i.imgur.com/qrgihEH.png)

![](https://i.imgur.com/ZfVJDYo.png)

![](https://i.imgur.com/np4GJbt.png)


---

### 地端操作
- [ ] Docker
  > [Windows installation](https://docs.docker.com/desktop/windows/install/)
  > [Ubuntu installation](https://docs.docker.com/engine/install/ubuntu/)
- [ ] Push image to Azure container registry

**範例**
```
docker pull nginx:stable
docker login csi5g.azurecr.io
>  key in username & password
docker tag nginx:stable csi5g.azurecr.io/nginx:1.0
docker push csi5g.azurecr.io/nginx:1.0
```

![](https://i.imgur.com/ZaSmFcS.png)

![](https://i.imgur.com/tuQkdfX.png)

![](https://i.imgur.com/Sd1Tiiy.png)

- [ ] Get Image from Azure container registry

**範例**
```
docker login csi5g.azurecr.io
>  key in username & password
docker pull csi5g.azurecr.io/nginx:1.0
```

---

### 檢查結果
服務 --> 存放庫

![](https://i.imgur.com/CexFOoL.png)


---
