Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statamic - Docker Exec can't run statamic commands #175

Open
SomeMex opened this issue Dec 14, 2024 · 4 comments
Open

Statamic - Docker Exec can't run statamic commands #175

SomeMex opened this issue Dec 14, 2024 · 4 comments

Comments

@SomeMex
Copy link

SomeMex commented Dec 14, 2024

When running statamic commands in Docker exec get error statamic: command not found. Also suggestion to add a way to select starter kits. Thank you for the awesome work you are doing here

@shinsenter
Copy link
Owner

@SomeMex

Could you let me know the exact path to that command? If the command’s path is not declared in the container’s $PATH variable, you will likely need to call it using the absolute path.

@SomeMex
Copy link
Author

SomeMex commented Dec 15, 2024

I will spin up a new instance and try now.

@SomeMex
Copy link
Author

SomeMex commented Dec 15, 2024

According to the documentation it should be ~/.composer/vendor/bin/statamic but in exec it does not recognise the path.
image

@shinsenter
Copy link
Owner

@SomeMex

Hey Dennis. Thank you for providing additional feedback.

However, I hope you can understand that the Docker images I provide for free are not official images created by the Statamic development team. They are simply pre-built container environments for running PHP projects, including Statamic. My Docker images do not include the Statamic binary by default.

You can either mount an existing Statamic project directory from your machine to the /var/www/html directory in the container or mount an entirely empty directory to /var/www/html, and the container will automatically create a new Statamic project for you.

Please use the Docker images for Statamic available here:
https://hub.docker.com/r/shinsenter/statamic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants