Docker Container Version Control

Does anyone know of a good way to check the version of tools inside of Docker containers? Currently I am sshing into each container and checking the version. Ideally we would like to somehow expose the versions of our tools so we can just call the container with php –version and it tells us its version.

We are trying to make sure all of our different environments ( and local ) have containers which share the same versions of our tools. In the past it has been an issue where locally we might be developing in php 5.5 but our production docker had php 5.4

  • How to copy files from shared directory in multiple Dockerfile?
  • Is it possible to create a docker image from Ubuntu ISO on Windows offline?
  • SkyDNS does not work with Kubernetes 1.1.2
  • override default docker run from host with options/arguments
  • Jenkins slave in docker is denying SSH keys
  • how to set file and dir permissions on docker when developing
  • Currently I am trying to set up a system that runs nightly and will slack our dev team if the versions of tools are different, but that requires sshing into each container.

    Any better ideas to check verions of tools?

  • Ignite service on docker container
  • Installing chef-server in a docker container
  • How to use Docker in Windows ?
  • Why are there differences in docker pull and docker build in IBM Container Service?
  • Cannot connect to the Docker daemon at tcp:// Is the docker daemon running?
  • How to run Python Scripts on Mac Terminal using Docker with Tensorflow?
  • One Solution collect form web for “Docker Container Version Control”

    if you have the container id, you can run commands without entering the container in an interactive shell

    # docker exec  8b70c4db41e0 nginx -v
    nginx version: nginx/1.9.9

    To list all packages on Debian

    dpkg-query -l
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                     Version                  Architecture Description
    ii  acl                      2.2.52-2                 amd64        Access control list utilities
    ii  adduser                  3.113+nmu3               all          add and remove users and groups
    ii  apt                            amd64        commandline package manager
    ii  base-files               8+deb8u2                 amd64        Debian base system miscellaneous files
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.