docker.start.txt 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. docker run -itd --name mysql8 -p 3307:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v D:/MySQL/docker_mysql:/var/lib/mysql mysql:8.0.28-oracle
  2. docker run -itd --name mysql82 -p 3312:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 mysql:8.0.28-oracle
  3. mysqldump -uroot -pr6kEwqWU9!v3 -P3307 --databases qmt_stocks_whole >d:/qmt_stocks_whole.sql
  4. # version order 1
  5. docker run -itd --name mysql8 -p 3307:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v C:/docker_mysql/stock_data:/var/lib/mysql -v C:/docker_mysql/config/mysql.cnf:/etc/my.cnf daocloud.io/library/mysql:8.0.21
  6. docker run -itd --name mysql8033 -p 3308:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v C:/docker_mysql/0833:/var/lib/mysql -v C:/docker_mysql/conf:/etc/mysql mysql:8.0.33
  7. docker run -itd --name mysql8033 -p 3308:3306 -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -v C:/docker_mysql/mysql.cnf:/etc/my.cnf mysql:8.0.33-debian
  8. docker run -itd -p 3307:3306 --name mysql8033 -e character-set-server=utf8mb4 --privileged=true --restart unless-stopped -v C:/docker_mysql/stock_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33 --skip-log-bin --disable-log-bin --lower_case_table_names=1
  9. docker run -itd -p 3307:3306 --name mysql8033 -e character-set-server=utf8mb4 --privileged=true --restart unless-stopped -v C:/docker_mysql/stock_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33 --lower_case_table_names=1 --skip-log-bin --disable-log-bin
  10. docker run --restart=always --log-opt max-size=40960m --log-opt max-file=2 -p 6379:6379 --name redis -v C:/docker_redis:/data --network stk-net -d redislabs/redisearch:2.8.3 redis-server --appendonly yes
  11. 20230515
  12. docker run -itd -p 3307:3306 --name mysql8033 --privileged=true --ip 172.18.0.2 --restart unless-stopped -v C:/docker_mysql/stock_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33
  13. docker run -itd -p 3309:3306 --name mysqltest -e character-set-server=utf8mb4 --privileged=true --restart unless-stopped -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33 --skip-log-bin --disable-log-bin --log-error=/var/lib/mysql/err.log
  14. 20230626
  15. OMMAND
  16. docker pull nvcr.io/nvidia/rapidsai/rapidsai-core:23.06-cuda11.8-runtime-ubuntu22.04-py3.10
  17. docker run -d --name cudf --gpus all -it --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --restart unless-stopped --network stk-net -p 8888:8888 -p 8787:8787 -p 8786:8786 -p 8722:22 nvcr.io/nvidia/rapidsai/rapidsai-core:23.06-cuda11.8-runtime-ubuntu22.04-py3.10
  18. 20230706
  19. docker run --name tidb -d -v C:/docker_tidb:/tmp/tidb --privileged=true --ip 172.18.0.6 --restart unless-stopped -p 3308:4000 -p 10080:10080 --network stk-net pingcap/tidb:latest
  20. docker run --name pgsql -d -v C:/docker_pgsql:/var/lib/postgresql --privileged=true --restart unless-stopped -p 3309:5432 -e POSTGRES_PASSWORD='r6kEwqWU9!v3' --network stk-net postgres:13
  21. docker run --name tidb -d -v C:/docker_tidb:/tmp/tidb --privileged=true --restart unless-stopped -p 3308:4000 -p 10080:10080 --network stk-net pingcap/tidb:latest
  22. docker run -itd -p 3409:3306 --name mysql83 --privileged=true --ip 172.18.0.8 --restart unless-stopped -v C:/docker_mysql/stock_data_2:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33
  23. 20230715
  24. docker run -itd --name tidb -d -v C:/docker_tidb:/tmp/tidb --privileged=true --ip 172.18.0.6 --restart unless-stopped -p 3308:4000 -p 10080:10080 --network stk-net pingcap/tidb:latest
  25. docker run -itd -p 3307:3306 --name mysql8033 --privileged=true --network stk-net --ip 172.18.0.2 --restart unless-stopped -v C:/docker_mysql/stock_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=r6kEwqWU9!v3 -d mysql:8.0.33
  26. docker run --name pgsql -d -v C:/docker_pgsql:/var/lib/postgresql --privileged=true --ip 172.18.0.4 --restart unless-stopped -p 3309:5432 -e POSTGRES_PASSWORD='r6kEwqWU9!v3' --network stk-net postgres:13
  27. docker run -itd --name tidb -d --privileged=true --ip 172.18.0.6 --restart unless-stopped -p 3308:4000 -p 10080:10080 -p 8822:22 --network stk-net ubuntu:23.10
  28. docker run -itd --name tidb -d --privileged=true --ip 172.18.0.6 --restart unless-stopped -p 3308:4000 -p 10080:10080 -p 8822:22 -p 9090:9090 -p 13000:3000 -p 12379:2379 --network stk-net ee
  29. # 注意p8722:22
  30. docker pull nvcr.io/nvidia/rapidsai/rapidsai-core:23.06-cuda11.8-runtime-ubuntu22.04-py3.10
  31. docker run -d --name cudf --gpus all -it --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --restart unless-stopped --network stk-net -p 8888:8888 -p 8787:8787 -p 8786:8786 -p 8722:22 nvcr.io/nvidia/rapidsai/rapidsai-core:23.06-cuda11.8-runtime-ubuntu22.04-py3.10
  32. # For advice on how to change settings please see
  33. # http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
  34. [mysqld]
  35. #
  36. # Remove leading # and set to the amount of RAM for the most important data
  37. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  38. # innodb_buffer_pool_size = 128M
  39. #
  40. # Remove leading # to turn on a very important data integrity option: logging
  41. # changes to the binary log between backups.
  42. # log_bin
  43. #
  44. # Remove leading # to set options mainly useful for reporting servers.
  45. # The server defaults are faster for transactions and fast SELECTs.
  46. # Adjust sizes as needed, experiment to find the optimal values.
  47. # join_buffer_size = 128M
  48. # sort_buffer_size = 2M
  49. # read_rnd_buffer_size = 2M
  50. # Remove leading # to revert to previous value for default_authentication_plugin,
  51. # this will increase compatibility with older clients. For background, see:
  52. # https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin
  53. # default-authentication-plugin=mysql_native_password
  54. skip-log-bin
  55. disable-log-bin
  56. skip-host-cache
  57. skip-name-resolve
  58. datadir=/var/lib/mysql
  59. socket=/var/run/mysqld/mysqld.sock
  60. secure-file-priv=/var/lib/mysql-files
  61. user=mysql
  62. max_connections=10000
  63. max_user_connections=5000
  64. character-set-server=utf8mb4
  65. thread_stack=4096k
  66. innodb_log_file_size=200M
  67. pid-file=/var/run/mysqld/mysqld.pid
  68. [client]
  69. socket=/var/run/mysqld/mysqld.sock
  70. character-set-server=utf8mb4
  71. !includedir /etc/mysql/conf.d/
  72. # For advice on how to change settings please see
  73. # http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
  74. [mysqld]
  75. #
  76. # Remove leading # and set to the amount of RAM for the most important data
  77. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  78. # innodb_buffer_pool_size = 128M
  79. #
  80. # Remove leading # to turn on a very important data integrity option: logging
  81. # changes to the binary log between backups.
  82. # log_bin
  83. #
  84. # Remove leading # to set options mainly useful for reporting servers.
  85. # The server defaults are faster for transactions and fast SELECTs.
  86. # Adjust sizes as needed, experiment to find the optimal values.
  87. # join_buffer_size = 128M
  88. # sort_buffer_size = 2M
  89. # read_rnd_buffer_size = 2M
  90. # Remove leading # to revert to previous value for default_authentication_plugin,
  91. # this will increase compatibility with older clients. For background, see:
  92. # https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin
  93. # default-authentication-plugin=mysql_native_password
  94. skip-host-cache
  95. skip-name-resolve
  96. datadir=/var/lib/mysql
  97. socket=/var/run/mysqld/mysqld.sock
  98. secure-file-priv=/var/lib/mysql-files
  99. log_error=/var/lib/mysql/error.log
  100. user=mysql
  101. max_connections=2000
  102. max_user_connections=1000
  103. max_connect_errors=1000000
  104. thread_cache_size=300
  105. server-id = 1
  106. character-set-server = utf8mb4
  107. pid-file=/var/run/mysqld/mysqld.pid
  108. [client]
  109. socket=/var/run/mysqld/mysqld.sock
  110. !includedir /etc/mysql/conf.d/