2016-09-08 35 views
0

我需要能夠:高山的Linux - autossh(失蹤)

- RUN apk add --no-cache autossh

爲我的項目從Ubuntu的

我得到一個錯誤,遷移到Linux的高山同時建設Dockerfile ..任何解決方法? 我無法擺脫autossh的需求,因爲我需要這個連接到我編寫數據庫。

ERROR: unsatisfiable constraints: 
    autossh (missing): 
    required by: world[autossh] 
The command '/bin/sh -c apk add --no-cache autossh' returned a non-zero code: 1 

回答

2

autossh是在社會庫只有邊緣分支,因爲你可以check on pkgs.alpinelinux.org。高山有從其他倉庫和分支只有主要/etc/apk/repositories默認穩定的分支,所以要安裝包,你必須在這裏添加它,例如:

echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories 
apk update 
+0

謝謝!對我來說,這非常不明顯:搜索。感謝您的鏈接! – sambehera

0

請在碼頭文件之前嘗試運行apk更新。希望工程

+0

同意。 autossh是一個高山包:https://pkgs.alpinelinux.org/package/edge/community/x86_64/autossh所以更新可能會得到它 –