It sounds like you have not installed n8n correctly, Can you make sure you have the docker volume set so that the data in /home/node/.n8n is not replaced. If you are not able to do that you will need to set the N8N_ENCRYPTION_KEY environment variable.
For the credentials you already have if you don’t know the encryption key you will need to make them again.