Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install docker wsl

# To Install docker and portainer on wsl, follow these instructions
#     1. https://docs.microsoft.com/en-us/windows/wsl/install
#     2. https://docs.docker.com/engine/install/ubuntu/
#     3. 
sudo service docker start
sudo service docker status
#	  4. Prevent user from always having to run docker command as sudo 
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
# 	  5. Test docker
docker run hello-world
#     6. https://docs.portainer.io/start/install/server/docker/wsl
#     7. Setup docker to start on wsl start - https://stackoverflow.com/a/65814529/9034699
#                                           - https://techbrij.com/wsl-2-ubuntu-services-windows-10-startup
 echo 'wsl.exe -u root -e sh -c "service docker status || service docker start"' > ~/.profile
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell script path 
Shell :: xargs multiple commands "mac" 
Shell :: convert increase size linux command line 
Shell :: install vim mac 
Shell :: check network interface linux 
Shell :: ubuntu install jellyfin 
Shell :: yarn add install all packages in package,json 
Shell :: ubuntu install arial font 
Shell :: install discord bot on server 
Shell :: npm install production 
Shell :: bc add 
Shell :: how to tar and gzip a file in linux 
Shell :: remove old version of node and install new 
Shell :: how to run a command on startup in linux ubuntu or centos 
Shell :: bash get dir of file 
Shell :: ubuntu install lib usb 
Shell :: how to check laravel installer version 
Shell :: fcm post example curl 
Shell :: add current directory to path 
Shell :: install redis-cli on ec2 
Shell :: undo previous commit but keep changes 
Shell :: linux cmd uninstall 
Shell :: adonis make migration 
Shell :: pterodactyl installer 
Shell :: docker sudo how to add user 
Shell :: bash script language check if item in array 
Shell :: get newest version of original in own fork 
Shell :: cudatoolkit installation 
Shell :: install pandas 
Shell :: how to set execute permission in linux 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =