How To Use Docker For Local Development Server
How to use docker for local development server
1. Pull Docker Image
$ docker pull nouphet/docker-php4
2. Run image docker as Container
$ docker run -d -p 8234:80 --name surety -t nouphet/docker-php4
3. Stop Container Image
$ docker stop surety
4. Restart Container Daemon
$ docker restart surety
5. Start Already Container
$ docker start surety
6. Copy local file to container apache server
$ docker cp . surety:/var/www/html
Another command to bind Mounting Volume docker as follow:
$ docker run -d -it -p 9443:80 -v "$PWD/<dir_project_name>":/var/www/html --name surety -t nouphet/docker-php4