Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 lxc-start 启动了 lxc。现在,如何获取容器的 IP 地址?
$ awk '{ print $4,$3 }' /var/lib/misc/dnsmasq.leases | column -t containername 10.0.3.83
资源
尝试lxc-ls --fancy 它列出所有容器,它们的名称、状态、ipv4、ipv6 和自动启动标志