Often toss on ubuntu, centos occasionally to also play a bar
1. Install DOCKER
cd /etc/yum.repos.d wget https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce -y systemctl start docker systemctl enable docker
Guacamole pull server, client and MySQL Guacamole image Docker
docker pull guacamole/guacamole docker pull guacamole/guacd docker pull mysql/mysql-server:5.7
Create a database initialization script to create tables used to verify the identity of the data:
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > initdb.sql
. Root user of MySQL:
docker run --name mysql --restart=always -e MYSQL_ROOT_PASSWORD=123456 -d mysql/mysql-server:5.7
docker logs mysql
The initdb.sql
move to MySQL container, log database set up a new database password:
cp initdb.sql MySQL Docker: / initdb.sql
sudo Docker Exec -it MySQL MySQL-uroot--p123456
# create guacamole guacamole and create a user and authorize the use of guacamole guacamole user password to access the CREATE DATABASE guacamole; the CREATE the USER ' guacamole ' @ ' % ' BY the IDENTIFIED ' guacamole ' ; . the GRANT the SELECT, the INSERT, the UPDATE, the oN guacamole the DELETE * the tO ' guacamole ' @ ' % ' ; the FLUSH PRIVILEGES; # in bash terminal, the initialization script used to create a data table for the new database docker exec -it mysql the bash
MySQL -uroot--p123456 -Dguacamole <initdb.sql
Start guacd and guacamole examples:
docker run --name guacd --restart=always -d guacamole/guacd docker run --name guacamole --restart=always --link guacd:guacd --link mysql:mysql -e MYSQL_DATABASE='guacamole' -e MYSQL_USER='guacamole' -e MYSQL_PASSWORD='guacamole' -d -p 8080:8080 guacamole/guacamole
View docker container has been run
Browser Access: http://192.168.100.17:8080/guacamole default user name and password are guacadmin
Add Host:
I'm here to start a ubuntu ssh and vnc were used to connect
operation result: