Build an Individual Docker Compose Container

by | Sep 5, 2023 | IT Tips | 0 comments

To rebuild the Docker service named php run this command

1
docker compose build php --no-cache

--no-cache says repull everything and build from scratch

Here is a screen shot of some of the options I use to get my container to build in WSL2 on Windows 11. Specifically the network: host option which lets the container build process pull from the internet.

1
2
3
4
5
# stop and remove all docker-compose.yaml containers
 docker compose down
 
# start them all in daemon mode
 docker compose up -d

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.