https://github.com/abdulawalarif/php-apache-docker
Deploy with Docker
https://github.com/abdulawalarif/php-apache-docker
docker
Last synced: 30 days ago
JSON representation
Deploy with Docker
- Host: GitHub
- URL: https://github.com/abdulawalarif/php-apache-docker
- Owner: abdulawalarif
- Created: 2025-03-27T07:55:20.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-27T10:15:46.000Z (2 months ago)
- Last Synced: 2025-05-07T06:16:29.630Z (30 days ago)
- Topics: docker
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy with Docker
## A Step-by-Step Guide
---# Docker
Think of Docker as a tool that helps package up software and everything it needs to run, like libraries and settings, into a neat little box called a "container". This container can then be easily moved around and run on different computers, making it simpler for developers to build, share, and run their applications consistently across various environments.
## Download Docker Desktop
[https://docs.docker.com/get-docker/](https://docs.docker.com/get-docker/)
## Terminal commands:
### build image:
docker build -t image-name .### list images:
docker image ls### run image:
docker-compose up### run image in background:
docker-compose up -d# remove image
docker image rm image-name### explore running container:
docker exec -it container-name bash### restart container:
docker restart container-name### remove container:
docker rm container-name### remove all stopped containers including "none" containers:
docker system prune### 📚 References
- 🔗 [Docker Hub PHP](https://hub.docker.com/_/php)
- 🔗 [Render.com](https://render.com/)