Please don’t try and upgrade a really old version straight to latest.
It will almost certainly break your installation. You will then need your backups.
It is not a Rocket.Chat error.
If you don’t understand how to use docker you MUST go and have a good read rather than trying to guess.
Also read this.