I installed windows home 18363 docker toolbox. I am trying to get the docker up, but you can also use the files and the results of the commands. Can you help me with this? where am i making a mistake?
the warning i got:
Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
docker-compose.yaml
version: "3"
services:
trncmysql:
build:
context: .
dockerfile: mysqldocker.yaml
command: --sql_mode=
volumes:
- "data-trncmysql:/var/lib/mysql"
- ./db/mysqlbackup.sql.gz:/docker-entrypoint-initdb.d/mysqlbackup.sql.gz
container_name: trncMySQL
ports:
- "33006:3306"
trncnginx:
build:
context: .
dockerfile: nginxdocker.yaml
container_name: trncNginx
ports:
- "8000:80"
volumes:
- "./conf:/etc/nginx/conf.d/"
- "//c/blablabla/docker:/var/www/"
links:
- trncphp
trncphp:
build:
context: .
dockerfile: php.yaml
container_name: trncPhp
volumes:
- //c/blablabla/docker:/var/www/"
volumes:
data-trncmysql:
$ docker-compose up
result:
`Recreating trncMySQL ... done Recreating trncNginx ... done` Attaching to trncPhp, trncNginx, trncMySQL
trncPhp | standard_init_linux.go:211: exec user process caused "no such file or directory"
trncPhp exited with code 1
trncMySQL | 2020-05-23T09:46:37.689704Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
trncMySQL | 2020-05-23T09:46:37.689756Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
trncMySQL | 2020-05-23T09:46:37.691212Z 0 [Note] mysqld (mysqld 5.7.27) starting as process 1 ...
trncMySQL | 2020-05-23T09:46:37.694771Z 0 [Note] InnoDB: PUNCH HOLE support available
trncMySQL | 2020-05-23T09:46:37.694983Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
trncMySQL | 2020-05-23T09:46:37.695063Z 0 [Note] InnoDB: Uses event mutexes
trncMySQL | 2020-05-23T09:46:37.695334Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
trncMySQL | 2020-05-23T09:46:37.695811Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
trncMySQL | 2020-05-23T09:46:37.696234Z 0 [Note] InnoDB: Using Linux native AIO
trncMySQL | 2020-05-23T09:46:37.696820Z 0 [Note] InnoDB: Number of pools: 1
trncMySQL | 2020-05-23T09:46:37.697442Z 0 [Note] InnoDB: Using CPU crc32 instructions
trncMySQL | 2020-05-23T09:46:37.699970Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
trncMySQL | 2020-05-23T09:46:37.710630Z 0 [Note] InnoDB: Completed initialization of buffer pool
trncMySQL | 2020-05-23T09:46:37.713189Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
trncMySQL | 2020-05-23T09:46:37.725341Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
trncMySQL | 2020-05-23T09:46:37.739894Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
trncMySQL | 2020-05-23T09:46:37.740397Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
trncMySQL | 2020-05-23T09:46:37.760327Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
trncMySQL | 2020-05-23T09:46:37.761769Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
trncMySQL | 2020-05-23T09:46:37.762078Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
trncMySQL | 2020-05-23T09:46:37.762823Z 0 [Note] InnoDB: Waiting for purge to start
trncMySQL | 2020-05-23T09:46:37.813575Z 0 [Note] InnoDB: 5.7.27 started; log sequence number 286336799
trncMySQL | 2020-05-23T09:46:37.814240Z 0 [Note] Plugin 'FEDERATED' is disabled.
trncMySQL | 2020-05-23T09:46:37.819356Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
trncMySQL | 2020-05-23T09:46:37.820642Z 0 [Warning] CA certificate ca.pem is self signed.
trncMySQL | 2020-05-23T09:46:37.821354Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
trncMySQL | 2020-05-23T09:46:37.825810Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
trncMySQL | 2020-05-23T09:46:37.826825Z 0 [Note] IPv6 is available.
trncMySQL | 2020-05-23T09:46:37.827179Z 0 [Note] - '::' resolves to '::';
trncMySQL | 2020-05-23T09:46:37.827429Z 0 [Note] Server socket created on IP: '::'.
trncMySQL | 2020-05-23T09:46:37.826732Z 0 [Note] InnoDB: Buffer pool(s) load completed at 200523 9:46:37
trncMySQL | 2020-05-23T09:46:37.829648Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
trncMySQL | 2020-05-23T09:46:37.848458Z 0 [Note] Event Scheduler: Loaded 0 events
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ab8dc52f46f2 docker_trncmysql "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 33060/tcp, 0.0.0.0:33006->3306/tcp trncMySQL
61e2957ad66d docker_trncnginx "nginx -g 'daemon of…" 6 minutes ago Up 6 minutes 0.0.0.0:8000->80/tcp trncNginx
it actually looks like it works but it doesn't. help please.
command: --pid-file /var/lib/mysql/mysqld.pid
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.