Trying to instrument docker container running jupyter notebook.
docker run -it -d --rm -p 8888:8888 -v c:/docker/docker_data/:/rswarnka/ -e ONEAGENT_INSTALLER_SCRIPT_URL="https://tenant.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&flavor=default&Api-Token=MyTocken" dynatrace/oneagent --set-app-log-content-access=true pyradix-python:v0.2 jupyter notebook --ip='*' --port=8888 --allow-root --NotebookApp.token='' --NotebookApp.password=''
However, container id is generated but exits immediately instead of continue to run. What is missing here?
Solved! Go to Solution.
Hi there. I imagine you would have to use the Python SDK here. This would take some hackery, since the SDK requires you to create trace method on your own.