8 Gb is fine, running docker on a dev instance is not
Why? This is what Docker is for.
If you know you're going to be running Docker, and you buy a computer with 8GB of RAM, I'm afraid I have very little sympathy for you. You should know exactly what you're going to get.