Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
6ba06a9a
Commit
6ba06a9a
authored
May 04, 2016
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve regex to add -H option
parent
fd8faf32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/docker/enable-docker-insecure.ps1
scripts/docker/enable-docker-insecure.ps1
+1
-1
No files found.
scripts/docker/enable-docker-insecure.ps1
View file @
6ba06a9a
...
...
@@ -7,4 +7,4 @@ if (!(Get-NetFirewallRule | where {$_.Name -eq "Dockerinsecure2375"})) {
Write-Host
"Enabling Docker to listen on insecure port 2375"
cp
C:\ProgramData\docker\runDockerDaemon.cmd
C:\ProgramData\docker\runDockerDaemon.cmd.bak
cat
C:\ProgramData\docker\runDockerDaemon.cmd.bak
|
%
{
$_
-replace
'^dockerd -H npipe://$'
,
'dockerd -H npipe:// -H 0.0.0.0:2375'
}
|
Set-Content
C:\ProgramData\docker\runDockerDaemon.cmd
cat
C:\ProgramData\docker\runDockerDaemon.cmd.bak
|
%
{
$_
-replace
'^dockerd -H npipe://
\s*
$'
,
'dockerd -H npipe:// -H 0.0.0.0:2375'
}
|
Set-Content
C:\ProgramData\docker\runDockerDaemon.cmd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment