If you haven’t seen them already, there are a number of past discussions on trying to get docker working in OS5 that one can find using the forum search feature (magnifying glass icon top right).
Because of the limited hardware on the second gen single bay My Cloud that struggles to run even OS5, it may not be able to properly run docker or containers within docker.