8000 how to use remote Docker host · Issue #6921 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
how to use remote Docker host #6921
Closed
@matifali

Description

@matifali

Create a new remote docker template similar to docker-image-builds

  1. Remote docker host should be specified as ssh://user@host
  2. Key to access the host should be already available on the deployment in ~/.ssh/KEY
  3. For services like fly.io, railway.app, render.com, where putting the key inside the Dockerfile is not a good solution. The private key can be created as a secret or secured environment variable.
  4. We can also create a managed sensitive terraform variable to store the key, which is not secure as values are stored unencrypted in the database. Thanks, @deansheather
  5. Check for the value of the Secret/Environment variable and create ~/.ssh/KEY file with the correct permissions on the Coder host to be able to access the remote docker host using terraform local-exec

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsArea: coder.com/docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0