简体   繁体   中英

How to connect to a Docker container with credentials using command line?

I've pulled a database image using docker and set the needed database url and credentials in my context.xml file. However, I get an access denied error when starting Tomcat. So I would like to connect to this Docker container with the help of cmd.

We suppose that your container is running. So, use :

docker exec -t -i CONTAINER_NAME /bin/sh

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM