Image server setup in container

I need to setup personal image server . I follow this document but its command doesn’t work properly for ubuntu. Is there any solution?