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“.

  • Do I need to rebuild image when parent image is updated?
  • How to collect metrics from services running on docker containers using collectd, telegraph or similar tools
  • How can I disable the default composer install in CircleCI?
  • Setup a docker MS build server image
  • How to extend existing docker container?
  • Why do I get “not a tty” when running “tty” in Docker?
  • I have tried “docker ps -a --no-trunc“, but it can’t get arguments.

  • Is there a way to install docker without its git dependency in ubuntu?
  • Nginx Angular2/Angular routes
  • Docker - Connect my docker image to another computer outside docker
  • Same IP address for multiple Bluemix Docker containers
  • Multiple docker compose files, with env_file specified
  • Hide/obfuscate environmental parameters in docker
  • 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.