正在执行任务: docker run --rm -t --network wxcb0 --name wxcloud_wxread -l role=container -l wxcloud=wxread -l hostPort=27081 -l wxPort=27082 -p 127.0.0.1:27081:5115/tcp -e 'MYSQL_ADDRESS=' -e 'MYSQL_USERNAME=' -e 'MYSQL_PASSWORD=' --cpus 0.5 -m 1GB --mount type=bind,source="C:\Users\Administrator\.wxcloudbase\.tencentcloudbase",target=/.tencentcloudbase,readonly wxcloud_wxread:latest Watching for file changes with StatReloader Performing system checks... System check identified no issues (0 silenced). You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them. May 21, 2024 - 13:32:12 Django version 5.0.6, using settings 'wxread.settings' Starting development server at http://127.0.0.1:5115/ Quit the server with CONTROL-C.
container要看看是否在本地暴露了端口
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
May 21, 2024 - 13:32:12
Django version 5.0.6, using settings 'wxread.settings'
Starting development server at http://127.0.0.1:5115/
Quit the server with CONTROL-C.
这个意思是docker内的5115,映射到本机的27081上;访问本机的27081看看。
人工置顶