mirror of https://github.com/portainer/portainer
fix(api): fix default group for endpoint declared via -H
parent
87fdd43afc
commit
be236f9d09
|
@ -256,9 +256,10 @@ func main() {
|
|||
}
|
||||
if len(endpoints) == 0 {
|
||||
endpoint := &portainer.Endpoint{
|
||||
Name: "primary",
|
||||
URL: *flags.Endpoint,
|
||||
Type: portainer.DockerEnvironment,
|
||||
Name: "primary",
|
||||
URL: *flags.Endpoint,
|
||||
GroupID: portainer.EndpointGroupID(1),
|
||||
Type: portainer.DockerEnvironment,
|
||||
TLSConfig: portainer.TLSConfiguration{
|
||||
TLS: *flags.TLSVerify,
|
||||
TLSSkipVerify: *flags.TLSSkipVerify,
|
||||
|
|
|
@ -269,7 +269,7 @@ function shell_buildBinary(p, a) {
|
|||
function shell_run(arch) {
|
||||
return [
|
||||
'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(';');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue