Run the following command:
docker run --volumes-from=puppet-agent centos /opt/puppetlabs/bin/puppet resource package tar --param provider
package { 'tar':
ensure => '2:1.26-29.el7',
provider => 'yum',
}
This should mount puppet software into the CentOS container.