Re: Container Uptime Discussion
Jim Warner <[email protected]> Thu, 8 Feb 2024 09:51:21 -0600
| Newsgroups | gmane.linux.procps.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2/7/24 11:51 PM, Craig Small (csmall) wrote:
>
> But at least now you can work out from inside the container how long its
> been running.
Hi Craig,
I've got a docker container based on ubuntu that I've minimally upgraded
to extract and build from our 'dist' tarball. So I never remove it but
instead just:
sudo docker start <container_id>
sudo docker cp <latest_tarball> <container_id>:root/
sudo docker exec <container_id> bash
Then I ./configure --disable-shared followed by make.
Under those conditions I can't get the --container switch to work.
Can you help?
Regards,
Jim
p.s. also, did you intentionally exclude the -c switch from w and uptime
--help?