Modifying golang Docker Container using the running shell

I’m using Docker to deploy my web service to Google Compute Engine and I’m following the instructions given here: https://blog.golang.org/docker

I want to install ffmpeg in the golang container and my approach is to get access to the shell as

  • Mysql in container or different VM
  • Docker Run and variable substitution
  • docker.io command replaced just 'docker'
  • Does the Docker RPM require additional dependencies?
  • Why docker login command saves unencrypted password on my computer?
  • How to start postgresql and rsync during docker run?
  • docker run -t -i my-webservice /bin/bash

    In contrary to the ubuntu:14.04 image, I don’t get access to the bash shell. How can that be?

    I have also found an image, where the ffmpeg is already configured and installed (https://registry.hub.docker.com/u/cellofellow/ffmpeg/). Is it possible to get access to the container from the golang container or do I have to install ffmpeg into my own docker image?

  • Docker data container, boot2docker, and the local file system
  • How to monitor docker container disk access metrics when using overlayFS
  • Using a shared MySQL container
  • How to map docker images to a dockerfile?
  • IDE within docker image?
  • Docker container running but browser refuse to connect
  • 2 Solutions collect form web for “Modifying golang Docker Container using the running shell”

    A better approach would be to install ffmpeg to your golang container by adding a RUN to your Dockerfile, like


    RUN apt-get update
    RUN apt-get install -y ffmpeg

    The words modifying, Docker Container, running shell, kind of contradicts the meaning of Docker.

    Installing ffmepeg is not as simple if additional codecs need to be installed as well, being the reason that I would like to play around using the shell before writing the docker script (copying the Docker script from cellofellow/ffmpeg works).

    An answer to the problems are described here: https://github.com/docker-library/golang/issues/27

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