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.

The flow:

  • How to disable password login through ssh for root, while allowing certificate based login
  • Docker container running but browser refuse to connect
  • Unable to start jenkins auctomatically inside docker container
  • Mupx deployment fails. Why?
  • Installing opencv in docker container
  • Error getting authority in Ubuntu SDK Docker image
  • 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.

  • Is there a way to set scale value before fig up?
  • How can I reduce the size of Docker images
  • Where to find my discourse output?
  • Docker client force Monolithic Upload
  • Running docker pull on windows 7 behind proxy
  • Changing node to manager in docker swarm - what command should I use
  • 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 myapp1.service contain docker run --name myapp1 as the ExecStart and then you’ll be able to find it with docker ps.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.