Docker Community Forums

Share and learn in the Docker community.

Docker API delete container not working

docker

(Ctammes) #1

I access the docker API via Angular/Javascript and I can issue GET and POST calls, but when trying to remove a container with DELETE, I get “404 Not Found”.

I use: http://192.168.50.6:2375/containers/8436f95d8b0d?v=1
I changed /etc/default/docker: DOCKER_OPTS="-H tcp://192.168.50.6:2375 -H unix:///var/run/docker.sock -r=true --api-cors-header=http://localhost:8880"

When I use Chrome without security (“google-chrome --disable-web-security”) the call works.

The webbrowser (port 8880:80) is running in a container on the dockerhost (192.168.50.6).

Any suggestions?