E: Could not get lock /var/lib/dpkg/lock

3.4? I think you mean Compose format 3.4.

The ubuntu-1604:201903-01 image contains Docker Compose v1.23.1 and Docker v18.09.3. Since Docker Compose file formats are backwards compatible, this image should work for Compose format 3.4.

For reference: https://docs.docker.com/compose/compose-file/