Skip to main content

All Questions

Tagged with
0 votes
0 answers
165 views

how to send signal to (parent process?) telling the parent that the child is crashing

This is probably not a best practice, but I am trying it out. I have this entrypoint.sh file that I use with docker like so: ENTRYPOINT ["./entrypoint.sh"] here was entrypoint.sh: #!/usr/...
Alexander Mills's user avatar
2 votes
1 answer
940 views

Podman Ps Format help

I am trying to list podman ps in a very readable format using podman ps -a --format="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{....
zakadmin's user avatar
1 vote
0 answers
954 views

Isolating users running containers in the same account

Multiple users are running container images on the same user account on a supercomputer ("service account"). Each container mounts a folder that contains sensitive data. One service account ...
itsmemario's user avatar
1 vote
0 answers
164 views

File changes made during execution of shell script on overlay filesystem are not visible before the shell script exits?

I have been experimenting with Docker and how some of the options of docker run ..., e.g. --privileged, may be abused for container-to-host escapes. The following cgroup_escape.sh script abuses the ...
Shuzheng's user avatar
  • 4,871
0 votes
2 answers
203 views

Do any of the common Linux utilities allow changing to arbitrary UID given CAP_SETUID?

I sometimes have the need to change my UID to arbitrary value when testing user namespace functionality. Currently, I do something like: useradd -u <uid> testuser su testuser userdel testuser I ...
Shuzheng's user avatar
  • 4,871
2 votes
0 answers
36 views

Do not allow detach for one bash

I would like to know if it's possible to forbid all detached-like things for a given shell. More precisely, I'd like to make sure that if a command runs in a specific shell, when the command stops, ...
tobiasBora's user avatar
  • 4,571
0 votes
1 answer
2k views

How can I run the sudo command in Python code under CentOS in Docker

I am trying to access the docker image labels from Python as follows hostname = socket.gethostname() cmd = "sudo curl --unix-socket /var/run/docker.sock http:/containers/" + hostname + "/json" output ...
jaruto's user avatar
  • 1
1 vote
1 answer
4k views

How to export JAVA_HOME in Lambda Linux Docker image?

I'm using the Lambda Linux AWS image. I'm trying to install Atlassian Bamboo that requires JAVA_HOME to be exported. I've been able to install java and verify it is installed properly. I can't get ...
Jeff's user avatar
  • 113