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.

  • Docker images versioning for Continuous Integration / Continuous Deployment
  • Attach stdin of docker container via websocket
  • How to create a docker image for a sqlserver2012
  • cannot run docker image with mounted folder
  • Change Ubuntu locale in Docker
  • Overriding inherited CMD in Dockerfile does not always work?
  • exec{'Pulling Docker Image':  
          command=>"/usr/bin/docker pull ,  

  • disk I/O error when using Sqlite3 and SqlAlchemy in docker
  • Mesos/Marathon on EC2 agents hostnames not accessible
  • docker : commit doesn't seem to persist changes by the passwd command
  • How to setup docker-machine to be as default?
  • WSO2 API Manager response fails with APIMgtGoogleAnalyticsTrackingHandler error
  • Connection Refused for Spark on Docker
  • 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.