Docker Community Forums

Share and learn in the Docker community.

API rpc error: code = Unimplemented desc = service mode change is not allowed

docker

(Vafecitos) #1

Dear, thanks for taking the time to read my query, I am instentando to do a service update from the api but it always returns me 501, I attach the json and the curl that I do to the api.

Im try to change the docker images only

Could you tell me what I’m doing wrong? Thank you

Pd: sorry the quality of my English, I’m using the google translator

dockerd info

Containers: 7
 Running: 7
 Paused: 0
 Stopped: 0
Images: 7
Server Version: 17.09.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
 NodeID: 0do6sz6aj1h3x1fxew7039hg5
 Is Manager: false
 Node Address: 10.100.0.45
 Manager Addresses:
  10.100.0.200:2377
  10.100.0.97:2377
  10.100.1.119:2377
  10.100.1.41:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-4-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.307GiB
Name: prod-docker-node-04
ID: FN3G:LEJC:YG5J:3PNJ:AFIE:PWVE:MIB7:UZGQ:7H6G:YOU5:2QHX:D7NV
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://172.16.1.4:8080
Https Proxy: http://172.16.1.4:8080
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

JSON Posted

{
"Name": "apis-sports",
	"TaskTemplate": {
		"ContainerSpec": {
			"Image": "srv-docker-registry-01.int.americadigital.com.ar/apis-sports:v240"
		}
	}
}

curl dump

> Connection #0 to host preprod-apis-site-01.int.americadigital.com.ar left intact
> Hostname preprod-apis-site-01.int.americadigital.com.ar was found in DNS cache
> Trying 172.23.5.20...
> TCP_NODELAY set
> Connected to preprod-apis-site-01.int.americadigital.com.ar (172.23.5.20) port 2735 (#0)
> HOST /v1.30/services/xqi638v7lgcpk5ixp5fxyod2b/update?version=34236 HTTP/1.1
> Post: preprod-apis-site-01.int.americadigital.com.ar:2735
> Accept: */*
> Content-Type: application/json
> Content-Length: 134
> X-Registry-Auth: xxxxxxxxxxxxxxx==
> upload completely sent off: 134 out of 134 bytes
> HTTP/1.1 501 Not Implemented
> Api-Version: 1.32
> Content-Type: application/json
> Docker-Experimental: false
> Ostype: linux
> Server: Docker/17.09.0-ce (linux)
> Date: Tue, 24 Oct 2017 18:59:55 GMT
> Content-Length: 88

Api Response

 {
 "message": "rpc error: code = Unimplemented desc = service mode change is not allowed"
 }