How to check the application version in docker

Release: 2020-03-30 09:41:12
Original
6213 people have browsed it

How to check the application version in docker

Check the version of the application in docker:

1. Find the currently running container

# docker ps
Copy after login

2. Enter the mysql container (nothing in the command) With parentheses)

#docker exec -it (mysql的名字,或id) bash
Copy after login

3. Log in to mysql and enter your account and password (without parentheses in the command)

#mysql -u(root ) -p(abcd)
Copy after login

After successful login, the detailed information of the mysql will be displayed, including the version No.

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of How to check the application version in docker. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!