Docker invents names like quirky_wozniak when you forget --name. Fixing that does not need a new container.
docker ps --format '{{.Names}}'
docker rename quirky_wozniak web-test
docker ps --format '{{.Names}}'
The command takes the current name or ID and the new name. The container keeps its ID, its data and its state. It can be running while you rename it, and the new name shows up immediately in docker ps and in the logs commands.
It is a nice cleanup after a quick experiment that turns out to be worth keeping. A container with a clear name is also easier to find in a month.
The caveat is that a name is more than a label. On user-defined networks, other containers find a container by its name, so after a rename the old name no longer works as an address, and anything that points to it breaks. Compose also keeps track of its containers through labels and names, so renaming a Compose-managed container by hand can lead to confusion, and Compose may create a new one on the next up. For those, change the name in the Compose file instead.
Further reading: docker container rename