1
Fork 0

add action for installing docker on ubuntu

This commit is contained in:
Alan Faubert 2018-11-01 09:44:15 -04:00
parent 84be79bf5c
commit 942edf2e58
2 changed files with 10 additions and 3 deletions

View File

@ -40,7 +40,7 @@ Mouse control is also enabled, and the terminal mode is set to `screen-256color`
Install [Docker for Windows](https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe). More details are available [here](https://docs.docker.com/docker-for-windows/install/).
Install Docker in WSL, using the [Ubuntu instructions](https://docs.docker.com/install/linux/docker-ce/ubuntu/) (or another distro if applicable).
Install Docker in WSL.
Use the configuration script to set up `docker-relay` and to add your user to the `docker` group.

View File

@ -9,11 +9,12 @@ while :; do
case "$ACTION_1" in
linux)
while :; do
ACTION_2="$(whiptail --menu '' 11 50 4 \
ACTION_2="$(whiptail --menu '' 12 50 5 \
2path 'Set up 2path.sh script' \
completion 'Set up user-specific ~/.bash_completion.d/' \
nodejs 'Install Node.js' \
nodejssetcap 'Let Node.js bind to privileged ports' \
docker 'Install Docker [Ubuntu]' \
--title 'Select Linux action' --notags --default-item "$ACTION_2" 3>&2 2>&1 1>&3-)"
case "$ACTION_2" in
2path)
@ -41,6 +42,12 @@ while :; do
sudo setcap 'cap_net_bind_service+ep' $(which node) && \
whiptail --msgbox Done 7 10
;;
docker)
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \
sudo apt-get install docker-ce && \
whiptail --msgbox Done 7 10
;;
*)
break
;;
@ -83,7 +90,7 @@ while :; do
ACTION_2="$(whiptail --menu '' 11 50 4 \
win 'Create ~/win symlink to %USERPROFILE%' \
hosts 'Create /etc/hosts symlink to system' \
docker 'Set up Docker WSL/Windows relay' \
docker 'Set up Docker WSL/Windows relay [Ubuntu]' \
windows 'Create Windows symlinks' \
--title 'Select WSL action' --notags --default-item "$ACTION_2" 3>&2 2>& 1>&3-)"
case "$ACTION_2" in