# Failed to exec 'docker' exec: "docker": executable file not found in $PATH

**URL:** <https://forum.pritunl.com/t/failed-to-exec-docker-exec-docker-executable-file-not-found-in-path/1690>\
**Category:** Pritunl Zero\
**Tags:** pritunl-zero\
**Created:** [January 15, 2024, 9:53am UTC](https://forum.pritunl.com/t/failed-to-exec-docker-exec-docker-executable-file-not-found-in-path/1690 "2024-01-15T09:53:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ponlayookm](https://forum.pritunl.com/user_avatar/forum.pritunl.com/ponlayookm/32/689_2.png) [@ponlayookm](https://forum.pritunl.com/u/ponlayookm)\
**Post date:** [January 15, 2024, 9:53am UTC](https://forum.pritunl.com/t/failed-to-exec-docker-exec-docker-executable-file-not-found-in-path/1690/1 "2024-01-15T09:53:27Z")

</div>

Hello Pritunl team,  
I have successfully installed Pritunl zero with bastion and proxy working fine on a test Amazon EC2 server.  
We ran into “Failed to exec ‘docker’ exec: “docker”: executable file not found in $PATH” and I’ve searched the forum and the solution suggested was to have most updated version of Docker, which I already did.  
I overcame the problem by using Amazon Linux 2 and install pritunl zero directly into the ECS instead of running in container.

.  
Now I’ve been tasked to provision another Pritunl server, using Ubuntu 22.04 and running Pritunl in containers.  
It’s already working, except the same problem “Failed to exec ‘docker’ exec: “docker”: executable file not found in $PATH”  
Server is already running latest version of Docker. Could your team provide support on this? We are looking forward to implement Pritunl in production and thus acquiring license if things work accordingly.

Thank you

---

<div class="post-metadata">

**Author:** ![ponlayookm](https://forum.pritunl.com/user_avatar/forum.pritunl.com/ponlayookm/32/689_2.png) [@ponlayookm](https://forum.pritunl.com/u/ponlayookm)\
**Post date:** [January 15, 2024, 12:40pm UTC](https://forum.pritunl.com/t/failed-to-exec-docker-exec-docker-executable-file-not-found-in-path/1690/2 "2024-01-15T12:40:14Z")

</div>

This is the error:

 ![Screenshot 2024-01-15 4.44.08 PM](https://forum-static.pritunl.com/original/1X/545c574f0936994b78ddf3225dcfe0fdbb98f6bd.png)

---

<div class="post-metadata">

**Author:** ![ponlayookm](https://forum.pritunl.com/user_avatar/forum.pritunl.com/ponlayookm/32/689_2.png) [@ponlayookm](https://forum.pritunl.com/u/ponlayookm)\
**Post date:** [January 16, 2024, 4:03am UTC](https://forum.pritunl.com/t/failed-to-exec-docker-exec-docker-executable-file-not-found-in-path/1690/3 "2024-01-16T04:03:58Z")

</div>

My apologies. I just realized that my setup needs to change.  
I can run the management, user, and proxy nodes in Docker container.  
But Bastion nodes should be installed directly onto the OS.

Cheers,
