What I did I installed docker image using the following script:
docker run --rm -i ubuntu:18.04 /bin/bash <<\'DOCKERCOMMANDS\' apt-get