ambitious-musician-70428
04/11/2023, 6:10 PMimport pulumi
import pulumi_docker as docker
remote_docker = docker.Provider("remote_docker",
host="<ssh://user@xxx.xxx.xxx.xxx:22>",
ssh_opts=["-i", "/home/local_user/.ssh/id_rsa"]
)
container = docker.Container("hello",
name="hello",
tty="true",
image="<http://my-registry.com/alpine:latest|my-registry.com/alpine:latest>",
command=["sleep", "100000000"],
opts=pulumi.ResourceOptions(provider=remote_docker),
)
I'm getting the following error:
Diagnostics:
docker:index:Container (hello):
error: 1 error occurred:
* Error pinging Docker server: Error response from daemon: 400 Bad Request: malformed Host header
This works locally ... but not remotely ... I can access the VM using ssh and run the container manually
Any help is appreciated 🙂billowy-army-68599
04/11/2023, 6:13 PMambitious-musician-70428
04/11/2023, 6:21 PMsalmon-account-74572
04/11/2023, 6:23 PMambitious-musician-70428
04/11/2023, 6:39 PMsalmon-account-74572
04/11/2023, 7:06 PM