#執行 container 注意這個是 linux 的 container docker container run -d --name nuget-server -p 5555:80 ` -e baget.env -v "${PWD}/baget-data:/var/baget" loicsharma/baget:latest
#執行私有的 nuget start http://localhost:5555/
編輯 baget.env
注意這邊他是設定在 user home 執行 , 所以這個檔案要放在 user home (~)
1 2 3 4 5 6 7 8 9 10 11
# The following config is the API Key used to publish packages. # You should change this to a secret value to secure your server. # 可以直接在 sql or 其他工具生 guid 來用 select NEWID() # 這裡先設定 123 方便 ApiKey=123