Installing docker on a Chromebook

I couldn’t find any instructions online so I thought I’d post them here for anyone who goes through a similar struggle.