# Check each node for any vx-* interfaces in /sys/class/net:
$ ls -l /sys/class/net/ | grep vx
# it will show something like following
# lrwxrwxrwx 1 root root 0 Apr 14 18:05 vx-001003-uijt2 -> ../../devices/virtual/net/vx-001003-uijt2
# lrwxrwxrwx 1 root root 0 Apr 14 18:05 vx-001009-tj2nu -> ../../devices/virtual/net/vx-001009-tj2nu
# to get more info on each interface
udevadm info /sys/class/net/vx-nnnnnn-xxxxx
# Remove the vxlan
# sudo ip -d link show vx-nnnnnn-xxxxx
sudo ip link delete vx-nnnnnn-xxxxx
docker rmi $(docker images -q --filter "dangling=true")
docker rm $(docker ps -a -q)
docker volume rm $(docker volume ls -qf dangling=true)
docker volume rm $(docker volume ls -qf dangling=true | awk '!/_/' | awk '!/-/' | awk '!/\./' | awk -F, 'length($0) == 64 { print }')
docker inspect mywildfly -f ‘{{json .State}}'”
should see OOMKilled=true
RUN BUILD_DEPS="...." \
&& apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \
...
&& apt-get purge -y --auto-remove $BUILD_DEPS
&& rm -rf /var/lib/apt/lists/*
Or with alpine
RUN BUILD_DEPS="...." \
&& apk update && apk upgrade \
&& apk add $BUILD_DEPS \
...
&& apk del $BUILD_DEPS \
&& rm -rf /var/cache/apk/*
Both have 2 forms
ENTRYPOINT ["a", "b", "c"]
exec
, thus be able to receive UNIX signal, like SIGTERM, from docker stop
ENTRYPOINT a b c
/bin/sh -c thus
, cannot receive UNIT signals. To receive UNIX signals, start with exec
. Example: ENTRYPOINT exec a b c
ENTRYPOINT + CMD: what is defined in CMD
will be appended to ENTRYPOINT
:
/bin/sh -c
before appended to the ENTRYPOINT
exec
or gosu
ADD
)COPY
individual files rather than all at once (utilise cache when rerun)ADD <URL>
is discouraged, wget
/curl
instead (don't add another layer, able to clean up downloaded files after used) Too much disk space occupied by file: ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
Assume the docker-compose.yml
file are store in a folder named mycoolapp
. When running docker-compose up
:
mycoolapp_default