Password default root docker alfresco-content-repository

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member

Password default root docker alfresco-content-repository

What are the docker alfresco-content-repository root credentials for changing alfresco-global.properties

4 Replies
Moderator
Moderator

Re: Password default root docker alfresco-content-repository

You can SSH into the container without password via docker commands. 

 

#Get container name or short container id:

- docker ps

 

#SSH into the container using container name or container id

- docker exec -t -i docker_acs6-aio-demo-project-acs_1 /bin/bash

here, docker_acs6-aio-demo-project-acs_1 is the container in my case

 

 You will be logged in as root user by default. You can execute all Linux commands.

- Open the /usr/local/tomcat/shared/classes/alfresco-global.properties in Vi editor and add/update as needed.

- Additionally you can use any other user as well if you have any, this command allows a particular user:

- docker exec -t -i -user alfadmin docker_acs6-aio-demo-project-acs_1 /bin/bash

If you want to change the password to something you know, then you can do it after you login using above commands.

- Execute 'passwd' command to change the password.

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)
Active Member

Re: Password default root  docker alfresco-content-repository

Thank but afert:

  1. access docker container
  2. execute  /usr/local/tomcat/shared/classes/alfresco-global.properties in Vi editor and add/update as needed

Results alfresco-global.properties readonly.

Image Readonly alfresco-global.properties

Active Member

Re: Password default root  docker alfresco-content-repository

Thank but afert:

  1. access docker container
  2. execute  /usr/local/tomcat/shared/classes/alfresco-global.properties in Vi editor and add/update as needed

Results alfresco-global.properties readonly.

 Image Readonly alfresco-global.properties

Moderator
Moderator

Re: Password default root  docker alfresco-content-repository

Can you check if you are getting in as root user ? Check for file permissions. It should be root user. sudo option is not available, so you might have to install it if logging in using a different user. 

Additionally, you can force the login using root user by using this command:

docker exec -t -i --user root docker_acs6-aio-demo-project-acs_1 /bin/bash

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)