Files
DetectionLab/Packer/scripts/docker/remove-docker-key-json.ps1
2017-12-11 08:49:25 -08:00

10 lines
348 B
PowerShell
Executable File

# Do not restart Docker as it creates the key.json with an unique ID
# This should not exist in the Vagrant basebox so you can spin up
# multiple Vagrant boxes for a Docker swarm etc.
Write-Host "Stopping Docker"
Stop-Service docker
Write-Host "Removing key.json to recreate key.json on first vagrant up"
rm C:\ProgramData\docker\config\key.json