# installing AWX as a docker image fails in docker-compose-build step

**URL:** <https://forum.ansible.com/t/installing-awx-as-a-docker-image-fails-in-docker-compose-build-step/37402>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 1, 2022, 3:16am UTC](https://forum.ansible.com/t/installing-awx-as-a-docker-image-fails-in-docker-compose-build-step/37402 "2022-12-01T03:16:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aijaz\_Baig](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@Aijaz\_Baig](https://forum.ansible.com/u/Aijaz_Baig)\
**Post date:** [December 1, 2022, 3:16am UTC](https://forum.ansible.com/t/installing-awx-as-a-docker-image-fails-in-docker-compose-build-step/37402/1 "2022-12-01T03:16:25Z")

</div>

I’m trying to create a docker image for AWX by following the guide mentioned [here][1]. I have all pre-requisites. However when I try to run

make docker-compose-build

I run into the following error:

ansible@Master:~/DevOpsPractice/awx$ sudo make docker-compose-build  
make: python3.9: No such file or directory  
/bin/sh: 1: python3.9: not found  
ansible-playbook tools/ansible/dockerfile.yml -e build\_dev=True -e receptor\_image=[quay.io/ansible/receptor:devel](http://quay.io/ansible/receptor:devel)  
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ‘all’  
[WARNING]: An error occurred while calling ansible.utils.display.initialize\_locale (unsupported locale setting). This may result in incorrectly calculated text widths that can cause  
Display to print incorrect line lengths

PLAY [Render AWX Dockerfile and sources] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost]

TASK [dockerfile : Create \_build directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [localhost]

TASK [dockerfile : Render supervisor configs] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [localhost] =\> (item=supervisor.conf)  
changed: [localhost] =\> (item=supervisor\_task.conf)

TASK [dockerfile : Render Dockerfile] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [localhost]

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=4 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

DOCKER\_BUILDKIT=1 docker build -t [ghcr.io/ansible/awx\_devel:HEAD](http://ghcr.io/ansible/awx_devel:HEAD)   
–build-arg BUILDKIT\_INLINE\_CACHE=1   
–cache-from=[ghcr.io/ansible/awx\_devel:HEAD](http://ghcr.io/ansible/awx_devel:HEAD) .  
[+] Building 24.5s (9/48)  
=\> [internal] load build definition from Dockerfile 0.0s  
=\> =\> transferring dockerfile: 7.58kB 0.0s  
=\> [internal] load .dockerignore 0.0s  
=\> =\> transferring context: 56B 0.0s  
=\> [internal] load metadata for [quay.io/centos/centos:stream9](http://quay.io/centos/centos:stream9) 3.3s  
=\> ERROR importing cache manifest from [ghcr.io/ansible/awx\_devel:HEAD](http://ghcr.io/ansible/awx_devel:HEAD) 1.4s  
=\> CANCELED FROM [quay.io/ansible/receptor:devel](http://quay.io/ansible/receptor:devel) 19.5s  
=\> =\> resolve [quay.io/ansible/receptor:devel](http://quay.io/ansible/receptor:devel) 1.5s  
=\> =\> sha256:f359ad713860d45ca196f689cf6641031a9e13cead84711561656f5ff12b76bf 9.17kB / 9.17kB 1.0s  
=\> =\> sha256:40465eda3d8c2d2ddd753fe3acc9663aec895810c34ae4e2e30a75c9f6a66819 3.90kB / 3.90kB 1.3s  
=\> =\> sha256:581c4418c46b7d13d08f57e4b2d51701044f85249d1ff6c6e0087229047ff9e6 1.05kB / 1.05kB 0.0s  
=\> =\> sha256:29ce8e4aa01356544be36e1561aa26cab8e48a1075b515d07c22f570a05bfdd4 1.57kB / 1.57kB 0.0s  
=\> =\> sha256:eca252e0939cac0ab0370d4e95676927ac8f28749f335eeffe323641c2f9dcb5 4.42kB / 4.42kB 0.0s  
=\> =\> sha256:4cef5a1a5c0996515ba8dcff2c3de29345ce0276d0adb0d205167a21389bdace 16.78MB / 57.94MB 19.5s  
=\> =\> sha256:6ebef3df747ed2b762052017d518f29c7e6ba0191310fee89db020c3bf6ccb95 230B / 230B 1.4s  
=\> =\> sha256:bc0193de74a56ec29a87ea372a5479695915118cc307d290ade87ab307b61c3c 6.29MB / 7.87MB 19.5s  
=\> =\> sha256:d9d79abb920b26bddc4453acbf8a1d49101e3720d4a9d503f4c957bee39f6742 4.19MB / 22.48MB 19.5s  
=\> [internal] load build context 0.0s  
=\> =\> transferring context: 47.09kB 0.0s  
=\> ERROR [https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf](https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/podman-containers.conf) 21.1s  
=\> CANCELED [builder 1/9] FROM [quay.io/centos/centos:stream9@sha256:997d6abc92f74a652d390a82f3e67467d0ad7ffcbbbe352466a06485104656a9](http://quay.io/centos/centos:stream9@sha256:997d6abc92f74a652d390a82f3e67467d0ad7ffcbbbe352466a06485104656a9) 19.7s  
=\> =\> resolve [quay.io/centos/centos:stream9@sha256:997d6abc92f74a652d390a82f3e67467d0ad7ffcbbbe352466a06485104656a9](http://quay.io/centos/centos:stream9@sha256:997d6abc92f74a652d390a82f3e67467d0ad7ffcbbbe352466a06485104656a9) 0.0s  
=\> =\> sha256:4cef5a1a5c0996515ba8dcff2c3de29345ce0276d0adb0d205167a21389bdace 15.73MB / 57.94MB 19.7s  
=\> =\> sha256:997d6abc92f74a652d390a82f3e67467d0ad7ffcbbbe352466a06485104656a9 858B / 858B 0.0s  
=\> =\> sha256:082807861440fcd8def47c5ee77185fc6ea68eea4aa37604a22fb8bd6e37fbfe 350B / 350B 0.0s  
=\> =\> sha256:e0c32bf1fbef58fb0960b06c642f87508aa5c169eda585a25e29d22d766aac85 1.16kB / 1.16kB 0.0s  
=\> ERROR [https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf](https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/containers.conf) 21.1s

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [December 2, 2022, 6:39pm UTC](https://forum.ansible.com/t/installing-awx-as-a-docker-image-fails-in-docker-compose-build-step/37402/2 "2022-12-02T18:39:35Z")

</div>

> make: python3.9: No such file or directory  
> /bin/sh: 1: python3.9: not found

that looks like the problem

is python installed on your system (and seen by root)?

what if you run make docker-compose-build without sudo?

AWX Team
