Docker Community Forums

Share and learn in the Docker community.

Docker API delete container not working


(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:
I changed /etc/default/docker: DOCKER_OPTS="-H tcp:// -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 (

Any suggestions?