7,137
edits
Line 52: | Line 52: | ||
docker run -d --name openwrt --device /dev/kmsg --tmpfs /tmp --cap-add NET_ADMIN openwrt-18.06.1-x86-64-generic-rootfs:latest | docker run -d --name openwrt --device /dev/kmsg --tmpfs /tmp --cap-add NET_ADMIN openwrt-18.06.1-x86-64-generic-rootfs:latest | ||
docker exec -it openwrt /bin/ash | docker exec -it openwrt /bin/ash | ||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
docker network inspect bridge | jq -r 'map(.Containers[]|select(.Name=="openwrt").IPv4Address) []' | |||
</syntaxhighlight> | </syntaxhighlight> |