1、基础配置 docker run -itd --name mongo -p 27017:27017 mongo --auth 参数说明: -p 27017:27017 :映射容器服务的 27017 端口到宿主机的 27017 端口。外部可以直接通过 宿主机 ip:27017 访问...
IDEA的Docker插件实战(Dockerfile篇)
#前提条件:服务器机配置好docker允许远程访问 [root@izwz9eftauv7x69f5jvi96z docker]# vim /usr/lib/systemd/system/docker.service #修改ExecStart这行 ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 ...
Docker 启动 redis 并添加密码
服务器启动 redis 并添加密码 docker run --name redis --restart=always -p 6379:6379 -d redis --requirepass "r123456"
Dart SDK安装
brew tap dart-lang/dart brew install dart brew upgrade dart 安装官网链接:(需要翻墙)https://dart.dev/get-dart
docker现有容器增加参数
有时候,我们创建容器时忘了添加参数 --restart=always ,当 Docker 重启时,容器未能自动启动, 现在要添加该参数怎么办呢,方法有二: 1、Docker 命令修改 docker container update --rest...
charles开启Charles-Proxy-macOS Proxy 时报错
Charles cannot configure your proxy settings while it is on a read-only volume. Perhaps you are running Charles from the disk image? If so, please copy Charles to the Applications folder and run i...
Mac 如何让python默认运行python3.9
Mac是自带python的,但是默认运行的是2.7 那么如何默认运行3.9呢 1.打开终端,运行该命令:open ~/.bash_profile 2.写入python外部变量环境(你python版本是多少就写多少,我的是3.9):export PATH=${...
pytest 5 通过TyinDB读写json文件
import pytest import json from tinydb import TinyDB @pytest.fixture def db(): db = TinyDB("db.json") print("\n Setup DB") yield db #db.purge() print("/n Teardown DB") de...
Python3 yield使用总结
示例 import scrapy class QuotesSpider(scrapy.Spider): name = "quotes def start_requests(self): urls = [ 'http://quotes.toscrape.com/page/1/', 'ht...
pytest 4 @pytest.fixture运用2
test_people.py from test_case.people import Person, anyone_like_dogs import pytest @pytest.fixture() def person(): return Person(name = "Bob", favorite_animal = "dog") def test_anyone_l...