Personal Docker Note
- docker rmi $(docker images -a -q)
- conflict: unable to delete ec496b4bc6e3 (cannot be forced) - image has dependent child images
- sudo docker rmi $(sudo docker images -aq) --force
- docker stop $(docker ps -a -q)
- docker rm $(docker ps -a -q)
- docker volume rm $(docker volume ls)
(Size - 94.4MB)
FROM google/debian:wheezy
EXPOSE 6767
ADD accountservice-linux-amd64 accountservice-linux-amd64
ENTRYPOINT ["./accountservice-linux-amd64"]
(Size - 545MB) ( Do not work )
FROM iron/go:dev
WORKDIR /app
ADD accountservice-linux-amd64 /app/
ENTRYPOINT ["./accountservice-linux-amd64"]
(Size - 10MB)
FROM iron/base
ADD stock /
ENTRYPOINT ["/stock"]
You most likely either:
use the binary for the wrong platform
the binary is not statically linked (has not all the necessary libraries)
You can use CGO_ENABLED=0 to build your binary statically.
docker service create \
--name=viz \
--publish=8000:8080/tcp \
--constraint=node.role==manager \
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
manomarks/visualizer
- docker network create --driver overlay my_network_name
- docker network rm my_network_name
Error - response from daemon: network docker_gwbridge id 4231cbbf8269fb3136c75e734a10fb8f20251b369dc26f5bbbde4aedfe4615c8 has active endpoints
Solution - Can you try using --force to disconnect the container?
docker network disconnect --force <network> release_diyaserver_1
- docker service ls
- docker service create --name=service_name --replicas=1 --network=my_network_name -p=6767:6767 someprefix/image_name