$ packer build -var aws_access_key="AIKA" env_var_inline.json
docker output will be in this color.
==> docker: Creating a temporary directory for sharing data...
==> docker: Pulling Docker image: ubuntu
docker: Using default tag: latest
docker: latest: Pulling from library/ubuntu
docker: Digest: sha256:2d44ae143feeb36f4c898d32ed2ab2dffeb3a573d2d8928646dfc9cb7deb1315
docker: Status: Image is up to date for ubuntu:latest
==> docker: Starting docker container...
docker: Run command: docker run -v /Users/rickardvonessen/.packer.d/tmp/packer-docker054886684:/packer-files -d -i -t ubuntu /bin/bash
docker: Container ID: 288baec51ee59c3d1572606c2119ef6143ac97adb9fcfa0fb7dcecb01fcefa11
==> docker: Provisioning with shell script: /var/folders/z6/z83mb59576b4f5ngh_tw6crc0000gp/T/packer-shell921548401
docker: AWS_ACCESS_KEY_ID is AIKA
docker: AIKA
==> docker: Exporting the container
==> docker: Killing the container: 288baec51ee59c3d1572606c2119ef6143ac97adb9fcfa0fb7dcecb01fcefa11
Build 'docker' finished.
==> Builds finished. The artifacts of successful builds are:
--> docker: Exported Docker file: /dev/null
Could you try that and post the output when running this if it doesn't work.