docker pull ubuntu:trusty
In order to use ltrace from Docker image:
docker run -t -i --privileged image_id /bin/bash
echo "deb https://dl.bintray.com/olpotkin/OTUS-CPP-COURSE trusty main" | sudo tee -a /etc/apt/sources.list
apt update && apt install -y allocator
apt install ltrace
In case of the error "The method driver /usr/lib/apt/methods/https could not be found.":
cd /usr/lib/apt/methods
ln -s http https
ltrace -e malloc -e free allocator