Create needed directories, remove old packages and install required packages from official Docker recommandations.