-
-
Save srinivasreddy42/43b33747cfe4d682c0df8099477579c4 to your computer and use it in GitHub Desktop.
Revisions
-
efrecon revised this gist
Feb 20, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ docker run \ {{end}}{{range $v := .Config.Entrypoint}}--entrypoint={{printf "%q" .}} \ {{end}}{{with .HostConfig.LogConfig}}--log-driver={{printf "%q" .Type}} \ {{range $o, $v := .Config}}--log-opt {{$o}}={{printf "%q" $v}} \ {{end}}{{end}}{{with .HostConfig.RestartPolicy}}--restart="{{.Name}}{{if eq .Name "on-failure"}}:{{.MaximumRetryCount}}{{end}}" \ {{end}}{{if .Config.Tty}}-t \ {{end}}{{if .Config.OpenStdin}}-i \ {{end}}{{if not (.Config.AttachStdout)}}--detach=true \ -
efrecon revised this gist
Feb 22, 2018 . 1 changed file with 15 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,22 @@ docker run \ --name={{.Name}} \ {{range $e := .Config.Env}}--env={{printf "%q" $e}} \ {{end}}{{range $p, $conf := .NetworkSettings.Ports}}{{with $conf}}-p {{(index $conf 0).HostIp}}:{{(index $conf 0).HostPort}}:{{$p}} \ {{end}}{{end}}{{range $n, $conf := .NetworkSettings.Networks}}{{with $conf}}--network {{printf "%q" $n}} \ {{range $conf.Aliases}}--network-alias {{printf "%q" .}} {{end}} \ {{end}}{{end}}{{range $v := .HostConfig.VolumesFrom}}--volumes-from={{printf "%q" .}} \ {{end}}{{range $v := .HostConfig.Binds}}--volume={{printf "%q" .}} \ {{end}}{{range $l, $v := .Config.Labels}}--label {{printf "%q" $l}}={{printf "%q" $v}} \ {{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{printf "%q" .}} \ {{end}}{{range $v := .HostConfig.CapDrop}}--cap-drop {{printf "%q" .}} \ {{end}}{{range $d := .HostConfig.Devices}}--device={{printf "%q" (index $d).PathOnHost}}:{{printf "%q" (index $d).PathInContainer}}:{{(index $d).CgroupPermissions}} \ {{end}}{{range $v := .Config.Entrypoint}}--entrypoint={{printf "%q" .}} \ {{end}}{{with .HostConfig.LogConfig}}--log-driver={{printf "%q" .Type}} \ {{range $o, $v := .Config}}--log-opt {{$o}}={{printf "%q" $v}} \ {{end}}{{end}}{{with .HostConfig.RestartPolicy}}--restart="{{.Name}}{{if eq .Name "on-failure"}}{{.MaximumRetryCount}}{{end}}" \ {{end}}{{if .Config.Tty}}-t \ {{end}}{{if .Config.OpenStdin}}-i \ {{end}}{{if not (.Config.AttachStdout)}}--detach=true \ {{end}}{{if .HostConfig.Privileged}}--privileged \ {{end}}{{printf "%q" .Config.Image}} \ {{range .Config.Cmd}}{{printf "%q" .}} {{end}} -
efrecon revised this gist
Jul 30, 2016 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,8 @@ docker run \ {{end}}{{range $l, $v := .Config.Labels}}--label "{{$l}}"="{{$v}}" \ {{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{.}} \ {{end}}{{range $v := .HostConfig.CapDrop}}--cap-drop {{.}} \ {{end}}{{range $d := .HostConfig.Devices}}--device={{(index $d).PathOnHost}}:{{(index $d).PathInContainer}}:{{(index $d).CgroupPermissions}} \ {{end}}{{range $v := .Config.Entrypoint}}--entrypoint="{{.}}" \ {{end}}{{with .HostConfig.LogConfig}}--log-driver="{{.Type}}" \ {{range $o, $v := .Config}}--log-opt {{$o}}="{{$v}}" \ {{end}}{{end}}{{with .HostConfig.RestartPolicy}}--restart="{{.Name}}{{if eq .Name "on-failure"}}{{.MaximumRetryCount}}{{end}}" \ @@ -17,4 +18,4 @@ docker run \ {{end}}{{if .HostConfig.Privileged}}--privileged \ {{end}}{{if .HostConfig.AutoRemove}}--rm \ {{end}}{{.Config.Image}} \ {{range .Config.Cmd}}{{.}} {{end}} -
efrecon revised this gist
Jun 30, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,7 @@ docker run \ {{end}}{{range $p, $conf := .NetworkSettings.Ports}}-p {{(index $conf 0).HostIp}}:{{(index $conf 0).HostPort}}:{{$p}} \ {{end}}{{range $v := .HostConfig.VolumesFrom}}--volumes-from="{{.}}" \ {{end}}{{range $v := .HostConfig.Binds}}--volume="{{.}}" \ {{end}}{{range $l, $v := .Config.Labels}}--label "{{$l}}"="{{$v}}" \ {{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{.}} \ {{end}}{{range $v := .HostConfig.CapDrop}}--cap-drop {{.}} \ {{end}}{{with .Config.Entrypoint}}--entrypoint="{{.}}" \ -
efrecon revised this gist
Jun 28, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,5 +14,6 @@ docker run \ {{end}}{{if .Config.OpenStdin}}-i \ {{end}}{{if not (.Config.AttachStdout)}}--detach=true \ {{end}}{{if .HostConfig.Privileged}}--privileged \ {{end}}{{if .HostConfig.AutoRemove}}--rm \ {{end}}{{.Config.Image}} \ {{range .Config.Cmd}}{{.}} {{end}} -
efrecon revised this gist
Jun 28, 2016 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,12 @@ docker run \ {{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{.}} \ {{end}}{{range $v := .HostConfig.CapDrop}}--cap-drop {{.}} \ {{end}}{{with .Config.Entrypoint}}--entrypoint="{{.}}" \ {{end}}{{with .HostConfig.LogConfig}}--log-driver="{{.Type}}" \ {{range $o, $v := .Config}}--log-opt {{$o}}="{{$v}}" \ {{end}}{{end}}{{with .HostConfig.RestartPolicy}}--restart="{{.Name}}{{if eq .Name "on-failure"}}{{.MaximumRetryCount}}{{end}}" \ {{end}}{{if .Config.Tty}}-t \ {{end}}{{if .Config.OpenStdin}}-i \ {{end}}{{if not (.Config.AttachStdout)}}--detach=true \ {{end}}{{if .HostConfig.Privileged}}--privileged \ {{end}}{{.Config.Image}} \ {{range .Config.Cmd}}{{.}} {{end}} -
efrecon created this gist
Jun 28, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ docker run \ --name={{.Name}} \ {{range $e := .Config.Env}}--env="{{$e}}" \ {{end}}{{range $p, $conf := .NetworkSettings.Ports}}-p {{(index $conf 0).HostIp}}:{{(index $conf 0).HostPort}}:{{$p}} \ {{end}}{{range $v := .HostConfig.VolumesFrom}}--volumes-from="{{.}}" \ {{end}}{{range $v := .HostConfig.Binds}}--volume="{{.}}" \ {{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{.}} \ {{end}}{{range $v := .HostConfig.CapDrop}}--cap-drop {{.}} \ {{end}}{{with .Config.Entrypoint}}--entrypoint="{{.}}" \ {{end}}{{with .HostConfig.RestartPolicy}}--restart="{{.Name}}{{if eq .Name "on-failure"}}{{.MaximumRetryCount}}{{end}}" \ {{end}}{{if .Config.Tty}}-t \ {{end}}{{if .Config.OpenStdin}}-i \ {{end}}{{.Config.Image}} \ {{range .Config.Cmd}}{{.}} {{end}}