Docker: copying bootstrap data to pipe caused "write init-p: broken pipe"

I can’t figure it out. Could I create a new server (and use Ubuntu 18.04) and just install docker and copy over /var/discourse ?