Get service file information using docker container id
I want to be able to get some information on the service file that created the docker process from the container id.
fleetctl start myapp.service1 fleetctl start myapp.service2 fleetctl start myapp.service3 docker ps --no-trunc for each container id on each record find the service name it was created with
I would appriciate any solution or work around like set an environment variable using the service file, and pull it later on using the docker container id.
One Solution collect form web for “Get service file information using docker container id”
The easiest way to do this is with the container names. Have
docker run --name myapp1 as the ExecStart and then you’ll be able to find it with