You have two ways to update and it will depend on whether you want to keep your data or not.
-If you come from 4.3.6 and want to keep your data. You could achieve that by:
sudo docker-compose down
git checkout v4.3.8 sudo
docker-compose up -d
Then you will set up a 4.3.6 environment with recorded data. Remember to clean the browser cache.
-If you want delete the entire environment and data. Go to the wazuh-docker repository and execute:
cd [single-node/multi-node] # I will select single-node
sudo docker-compose down
sudo docker-compose rm
sudo docker volume prune git checkout v4.3.8
sudo docker-compose up -