Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

Golang inside of docker


Golang inside of docker

I'm working through how to build a golang program instrumented with AppDynamics running inside a docker container.


Anyone done this?  I'm encountering problems when the final build is complete - so I'm curious what distro you used to build from.

Tags (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
Golang inside of docker
AppDynamics Team

Hi David,


Could you share your build process and the errors you're encountering?




Kyle Furlong, Technical Lead (C++ and Dynamic Languages)

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

I got this working, although my "solution" was quite a bit contorted.  The thing I had to do was to manually copy some of the shared-libraries into the docker image.  See the following two lines referencing "shared libraries".  Specifically in my './lib/' directory I have and  These I got from a stock Ubuntu:14.04 version and copied them into my build directory.


On top of this I had to manually copy the AppDynamics shared-library inside the container also (see Dockerfile below).




Here's my Dockerfile:


FROM busybox:ubuntu-14.04


# Add the binary

COPY src/app/bubbagump /app/bubbagump


# Copy in supporting shared libraries (ripped from Ubuntu (vagrant) )

COPY lib/ /lib


# Copy AppDynamics shared library

COPY src/appdynamics/sdk_lib/lib/ /lib/


# Copy in the certificate file


COPY src/appdynamics/ca-bundle.crt /app/




CMD ["/app/bubbagump"]