title: Linux Applications breadcrumbs:
docker info
contains WARNING: No swap limit support
, it's not working and should maybe be fixed./etc/default/grub
, add cgroup_enable=memory swapaccount=1
to GRUB_CMDLINE_LINUX
.update-grub
and reboot./etc/docker/daemon.json
:
"ipv6": true
and "fixed-cidr-v6": "<ipv6-subnet>/64"
"dns": ["1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001"]
8.8.8.8
and 8.8.4.4
by default."iptables": false
docker
group.docker system df -v
docker image prune -a
docker volume prune
--name=<name>
-d
-it
--rm
--restart=unless-stopped
--init
-e <var>=<val>
-p <host-port>:<cont-port>[/udp]
-v <vol>:<cont-path>
(<vol>
must have a path prefix like ./
or /
if it is a directory and not a named volume)docker network create --driver=bridge --subnet=<ipv4-net> --ipv6 --subnet=<ipv6-net> <name>
docker network create --driver=bridge --subnet=<ipv4-net> --gateway=<ipv4-gateway> --ipv6 --subnet=<ipv6-net> --gateway=<ipv6-gateway> -o "com.docker.network.bridge.name=<host-if> <name>
docker network create --driver=macvlan --subnet=<ipv4-net> --gateway=<ipv4-gateway> --ipv6 --subnet=<ipv6-net> --gateway=<ipv6-gateway> -o parent=<netif> <name>
docker run --network=<net-name> --ip=<ipv4-addr> --ip6=<ipv6-addr> --dns=<dns-server> <image>
Docker Compose will fail to work if /tmp
has noexec
.
/usr/local/bin/docker-compose
to /usr/local/bin/docker-compose-normal
./usr/local/bin/docker-compose
with the contents below and make it executable.New docker-compose
:
#!/bin/bash
# Some dir without noexec
export TMPDIR=/var/lib/docker-compose-tmp
/usr/local/bin/docker-compose-normal "$@"
apt install smartmontools
smartctl -a <dev>
smartctl -t <short|long|conveyance|select> [-C] <dev>
-C
: Foreground mode.{% include footer.md %}