How to analyze disk usage of a Docker container

I can see that Docker takes 12GB of my filesystem: 2.7G /var/lib/docker/vfs/dir 2.7G /var/lib/docker/vfs 2.8G /var/lib/docker/devicemapper/mnt 6.3G /var/lib/docker/devicemapper/devicemapper 9.1G /var/lib/docker/devicemapper 12G /var/lib/docker But, how do I know how this is distributed over the containers? I tried to attach to the containers by running (the new v1.3 command) docker exec -it <container_name> bash and then running … Read more

How do I assign a port mapping to an existing Docker container?

I’m not sure if I’ve misunderstood something here, but it seems like it’s only possible to set port mappings by creating a new container from an image. Is there a way to assign a port mapping to an existing Docker container? 15 s 15 You can change the port mapping by directly editing the hostconfig.json … Read more