On 23/3/23 05:47, Greg Wooledge wrote:
On Wed, Mar 22, 2023 at 09:16:48PM +0000, Tom Furie wrote:
Or...
ip -o a | awk '{print $2, $4}'
I think they wanted to restrict it to IPv4 (inet) addresses, and omit
the netmask (/8 or whatever CIDR suffix), so:
ip -o a | awk -F '[ /]*' '$3 == "inet" {print $2, $4}'
But... again... why the hell would someone WANT THIS OUTPUT? What is
it going to be use-- wait. I remember now. One of the posters in
this thread, I think not the OP, had the word "docker" in their
results. So, there's no point asking any further. Docker questions
that involve shell programming are never to be entertained. It leads
only to increased misery, and never increased understanding.
I am the guilty party who had docker. I have not raised any issue about it. The
instance is not used any more and was an experiment in running nextcloud on an
arm server
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
56a238ff2cbf arm64v8/nextcloud "/entrypoint.sh apac…" 2 years ago
Exited (0) 2 years ago nextcloud
In rare circumstances I will use a docker version of a package if the Debian
verion is not up to date, or I don't want the pain of compiling it, or if there
is no easy way to compile a specific version to use with my version of Debian.
If I have to use a packaged application I will try and use an appimage
--
Jeremy
(Lists)