safe: fix a counting bug when creating a new container
cmd_init: improve formatting a bit