i don’t think you have to run the docker rm command, to reinitialize with different run parameters.
if you want to keep the logs…
else if you are on linux, i made a script that exports the logs while keeping the docker logs, but it does takes a bit of system resources if the logs in docker gets extensive…
you can find it here, if you expand the post or click the link
this will also keep your logs across basically whatever you are doing… because it exports the previous whole minute to an external log file.