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

  • Apache2 in docker container gives 403 on statically served files
  • Docker Setup with a Mysql Container for a Python App
  • Monitoring docker container from docker-java API
  • docker-machine on windows 10 - “You must have a copy of the scp binary locally to use the scp feature”
  • Why can't Java find a class from a jar file?
  • Timeout issue on while running docker run for onlyoffice document server integration
  • 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?

  • Allow WordPress write access to Docker mounted folder
  • docker : where to find the docker-compose.yml and the physical image of the machine
  • docker php:7.1-fpm-alpine fails to build GD
  • Not able to communicate with server on https when launched from marathon and docker
  • Docker Calico networking: Why container from ipip network cannot communication with container from other networks?
  • Is there a way to “hibernate” a linux container
  • 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.