docker pull using puppet not working

docker pull… is working but when i am trying to do the same thing using puppet script, its showing error.

Notice: /Stage[main]/Main/Exec[Pulling Docker Image]/returns: 2015/01/30 11:11:11 Authentication is required.
Error: /usr/bin/docker pull returned 1 instead of one of [0]
Error: /Stage[main]/Main/Exec[Pulling Docker Image]/returns: change from notrun to 0 failed: /usr/bin/docker pull returned 1 instead of one of [0]

Note: I am not using any module but directly executing commands from manifest.

  • Can I clone a paused Docker container?
  • Docker download Google's TensorFlow issue
  • MySql.Data.MySqlClient.MySqlException using ServiceStack ORMLite
  • Error creating default \“bridge\” network: cannot create network (docker0): conflicts with network (docker0): networks have same bridge name
  • gdb does not hit any breakpoints when I run it from inside Docker container
  • How to setup ASP.NET Web Application with Docker container
  • exec{'Pulling Docker Image':  
          command=>"/usr/bin/docker pull ,  

  • automated docker build run error: Unable to find image
  • Microservices and database
  • New to React and trying to compile an APK but failing
  • docker image for a go package
  • Laravel 5 is not reading mysql connection (docker) ubuntu
  • Is it feasible to control Docker from inside a container?
  • One Solution collect form web for “docker pull using puppet not working”

    If you look at the error, it’s saying that Authentication is required.. This could be the user that Puppet is running the docker exec as has different permissions that your default user.

    Have you thought about using the Docker module? It means you can perform the actions you want with, plus there’s a lot of community support, and it makes the Docker actions idempotent so you won’t get the commands running multiple times if not needed.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.