fix(api): fix default group for endpoint declared via -H

pull/1892/merge
Anthony Lapenna 7 years ago
parent 87fdd43afc
commit be236f9d09

@ -256,9 +256,10 @@ func main() {
} }
if len(endpoints) == 0 { if len(endpoints) == 0 {
endpoint := &portainer.Endpoint{ endpoint := &portainer.Endpoint{
Name: "primary", Name: "primary",
URL: *flags.Endpoint, URL: *flags.Endpoint,
Type: portainer.DockerEnvironment, GroupID: portainer.EndpointGroupID(1),
Type: portainer.DockerEnvironment,
TLSConfig: portainer.TLSConfiguration{ TLSConfig: portainer.TLSConfiguration{
TLS: *flags.TLSVerify, TLS: *flags.TLSVerify,
TLSSkipVerify: *flags.TLSSkipVerify, TLSSkipVerify: *flags.TLSSkipVerify,

@ -269,7 +269,7 @@ function shell_buildBinary(p, a) {
function shell_run(arch) { function shell_run(arch) {
return [ return [
'docker rm -f portainer', 'docker rm -f portainer',
'docker run -d -p 9000:9000 -v $(pwd)/dist:/app -v /tmp/portainer:/data -v /var/run/docker.sock:/var/run/docker.sock:z --name portainer portainer/base /app/portainer-linux-' + arch + ' --no-analytics' 'docker run -d -p 9000:9000 -v $(pwd)/dist:/app -v /tmp/portainer:/data -v /var/run/docker.sock:/var/run/docker.sock:z --name portainer portainer/base /app/portainer-linux-' + arch + ' --no-analytics -H unix:///var/run/docker.sock'
].join(';'); ].join(';');
} }

Loading…
Cancel
Save