If you look for private docker usage

This is not clear in the doc. Also I don’t know and if there is a way to use a token instead of your password. This is how i did to connect to a private docker repo when building if you don’t want to use docker login command on your machine:

Create a file dockerAuth.json
{ “username”: “yourusername”, “password”: “yourpassword”, “email”: “email@address.com” }

and in your waypoint.hcl

 build {
    use "pack" {}
    registry {
        use "docker" {
          image = "privaterepo/test"
          tag = "1"
          local = false
          encoded_auth = filebase64("/somewhere/dockerAuth.json")
1 Like