Connect Alfresco Docker images

cancel
Showing results for 
Search instead for 
Did you mean: 
jpexposito
Member II

Connect Alfresco Docker images

Hello, 

Right now, I have three environments, two on docker and one on server. For this, I want to deploy similarly in this environment. 

My problem, I can not ssh connection to ip:

ssh root@172.18.0.8
ssh: connect to host 172.18.0.8 port 22: Connection refused

get ip:

docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' test-alfresco-1
172.18.0.8

in:

docker exec -it test-alfresco-1 /bin/bash

not problem.

9 Replies
angelborroy
Alfresco Employee

Re: Connect Alfresco Docker images

Docker / Docker Compose creates an internal network that is only accesible from containers.

So this 172.x ips cannot be accessed from your host.

Making changes in a container is not recommended (possible?), so I'm not sure why you want to access the container using ssh.

Hyland Developer Evangelist
jpexposito
Member II

Re: Connect Alfresco Docker images

Hello,

I want install amp ´s in enviroment. For this, I necesite connect with ssh, to replicate the enviroment.

 

Thank´s

fedorow
Senior Member II

Re: Connect Alfresco Docker images

For installing of amp use custom image by making Dockerfile.

For permanent tests use docker exec command without create bash session

docker compose exec alfresco java -jar alfresco-mmt.jar install example-amp.amp alfresco.war -verbose

or with creation bash session and run multiple commands.

docker compose exec -it alfresco bash

The second way is clouse to ssh session.

p.s. container is not a virtual machine

jpexposito
Member II

Re: Connect Alfresco Docker images

Hello,

 

Thist I sabe. The problem, its connect ssh, and diferents sistems, with ssh.

 

Thank´s.

 

 

angelborroy
Alfresco Employee

Re: Connect Alfresco Docker images

You don't need to use SSH to install AMPS or JARS.

Take a look at this project to learn how to apply addons to Alfresco and Share Docker Images:

https://github.com/alfresco/alfresco-docker-installer

Hyland Developer Evangelist
jpexposito
Member II

Re: Connect Alfresco Docker images

Hello, 

I have to equalize the environments, but the problem it´s alfresco docker don´t have ssh.

angelborroy
Alfresco Employee

Re: Connect Alfresco Docker images

May you define the term "equalize"?

May you elaborate additionally on why SSH is a requirement for that?

Thanks

Hyland Developer Evangelist
jpexposito
Member II

Re: Connect Alfresco Docker images

I want equal´s deploy in diferents enviroments.

 

Thank´s

angelborroy
Alfresco Employee

Re: Connect Alfresco Docker images

This is one of the main features of Docker Compose: deploying exactly the same version of services with the same customizations (addons, plugins, configuration...) in any environment.

Hyland Developer Evangelist