Windows Docker Toolbox 安裝後會安裝一個VirtualBox虛擬機,一個Kitematic,這是GUI管理Docker的工具mysql
docker-machine lssql
docker-machine create --driver=virtualbox testdocker
docker-machine env testssh
docker-machine env test| Invoke-Expression工具
docker-machine stop testrest
docker-machine start testget
docker-machine ssh test虛擬機
sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=http://666.m.daocloud.io |g" /var/lib/boot2docker/profileit
exitio
docker-machine restart test
docker pull mysql
docker run -d -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:latest
docker start mysql
docker images
會遇到的問題 mv /etc/mysql/my.cnf /etc/mysql/mysql.cnf_backup
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
flush privileges;