Repository names must match [a-z0-9_-]+

Once a container has terminated in Docker, the next step is to commit the container to an image, and then tag that image with a relevant name so it can be saved to a repository.

Docker lets us do this in one step with the commit command. To do so, we run the docker commit with the container ID from the previous step and tag it to be a repository under {{ tour.tourScope.domainName }}.

sudo docker commit {{ tour.tourScope.containerId || 'containerId' }} {{ tour.tourScope.domainName }}/{{ tour.tourScope.username }}/{{ tour.tourScope.repoName || 'myfirstrepo' }}