Jump to content

Regenerate Docker Certs, restart, reset env


iamtheky
 Share

Recommended Posts

Had issues with docker for windows while bouncing around the network.  This series of commands (as described here:  http://stackoverflow.com/questions/32047660/docker-for-windows-not-working)  seems to clear it up.

;docker reset

$dockerdir = "c:\program files\docker toolbox\"

RunWait("cmd /c docker-machine regenerate-certs -f default" , $dockerdir)

RunWait("cmd /c docker-machine restart default" , $dockerdir)

RunWait("cmd /c docker-machine env default --shell=cmd" , $dockerdir)

RunWait("cmd /c FOR /f " & '"' & "tokens=*" & '"' & " %i IN ('docker-machine env default --shell=cmd') DO %i")

RunWait('"C:\Program Files\Git\bin\bash.exe" --login -i start.sh' , $dockerdir)

 

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Just spun up Rstudio with docker, and started an rstudio pluralsight course.  Recommend everyone start playing, lots of good fun.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...