Install Ubuntu
Install docker
sudo group add docker
sudo usermod -aG docker $USER
newgrp docker
docker image ls
docker rmi hello-world:latest
mkdir web_dev
cd web_dev/
vi docker-compose.yml
```
version:'3.3'
services:
web:
image: php:7.3-apache
comtainer_name: php73
volumes:
- /php:/var/www/html/
ports:
- 8080:80
```
docker-compose up
Install docker
sudo group add docker
sudo usermod -aG docker $USER
newgrp docker
docker image ls
docker rmi hello-world:latest
mkdir web_dev
cd web_dev/
vi docker-compose.yml
```
version:'3.3'
services:
web:
image: php:7.3-apache
comtainer_name: php73
volumes:
- /php:/var/www/html/
ports:
- 8080:80
```
docker-compose up
No comments:
Post a Comment