Is there any method to get the running docker container's startup arguments?

Is there any method to get the running docker container’s startup arguments? E.g.:

docker run -d -it --privileged --net=host --name oracle-net-host1 -v /oracle_data/oracle1:/data  mike/oracle12c:latest 

I can get “-d -it --privileged --net=host --name oracle-net-host1 -v /oracle_data/oracle1:/data mike/oracle12c:latest“.

  • docker: 'stack' is not a docker command
  • Docker and HttpCallback
  • Why does Django not find the admin/base_site.html file when I dockerize the app?
  • Docker exposed port unreachable
  • cannot run container after commit changes
  • Terraform and docker networking
  • I have tried “docker ps -a --no-trunc“, but it can’t get arguments.

  • Install Fabric8 on openshift docker instance
  • Cannot shutdown high load docker mysql
  • Cannot create docker images
  • RHEL7: How to solve “ import read failed(2)”?
  • Docker install fails on OSx
  • Error while configuring UCP replica
  • One Solution collect form web for “Is there any method to get the running docker container's startup arguments?”

    There isn’t one but you can query the individual parts using docker inspect.

    docker inspect -f '{{.NetworkSettings.Networks}}' oracle-net-host1
    

    Gives something like this:

    map[host:0xc876448c99]
    

    Similarly

    docker inspect -f '{{.Mounts}}' oracle-net-host1
    

    would give

    [{ /oracle_data/oracle1 /data local rprivate }]
    

    I’m sure there are ways to make the output more friendly

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