Build an Individual Docker Compose Container

Written by James McDonald

September 5, 2023

To rebuild the Docker service named php run this command

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.

# 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.

You May Also Like…

Robocopy exclude Directories

Just trying to copy everything except a couple of directories from a drive to my NAS This is the secret incantation of...