docker pull using puppet not working

docker pull www.alm-docker-registry.com:8090/test… 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 www.alm-docker-registry.com:8090/test... 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 www.alm-docker-registry.com:8090/test... returned 1 instead of one of [0]

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

  • Copying a directory into a docker image while skipping given sub directories
  • Run app inside docker container as non-root user with capabilities
  • How do I set System Path in my dockerfile for a Windows Container?
  • Docker container exits immediately after running or restarting PostgreSQL image
  • Docker - Windows containers: How to use custom paths
  • Error when running application at the container -Docker
  • exec{'Pulling Docker Image':  
          command=>"/usr/bin/docker pull www.alm-docker-registry.com:8090/test... ,  
     }`
    

  • Working with HDFS within docker container
  • Failed to run a script using IntelliJ plugin for docker deplyment
  • How to deal with files of web applications in docker?
  • docker compose build single container
  • How to import SHP file into docker PostgreSQL container?
  • Use Docker to run a build process
  • 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.