cancel
Showing results for 
Search instead for 
Did you mean: 

Connect Alfresco Docker images

jpexposito
Champ in-the-making
Champ in-the-making

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 9

angelborroy
Community Manager Community Manager
Community Manager

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

Hello,

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

Thank´s

fedorow
Elite Collaborator
Elite Collaborator

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
Champ in-the-making
Champ in-the-making

Hello,

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

Thank´s.

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

Hello, 

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

May you define the term "equalize"?

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

Thanks

Hyland Developer Evangelist

I want equal´s deploy in diferents enviroments.

Thank´s

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