#前言
这周被安装了解Stellar服务器搭建。今天在mac上安装了最简单的docker 一键安装steller包。跑了一下,好像还行。没遇到啥问题。在此做个笔记。
#上码
1,docker cli 登录 在安装 docker pull stellar/quickstart 时提示 “docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password” 只需要在cli 环境下执行登录就行了: docker login -u hubs(这个是用户名,而不是你的邮箱) 2,执行安装命令: docker pull stellar/quickstart 3,运行stellar: docker run --rm -d -it -p "8000:8000" -p "11626:11626" -p "11625:11625" -p "5432:5432" -v "/Users/hubs/Downloads/stellar:/opt/stellar" --name stellar stellar/quickstart --testnet # -p:(local port|contain port) 端口 # rm:Automatically remove the container when it exits # d:Run container in background and print container ID #it: i:Keep STDIN open even if not attached t:Allocate a pseudo-TTY #v: Bind mount a volume 4,通过docker ps 查看后台运行的容器 docker ps 5,停止执行 docker stop 容器ID; 6,安装 postgresql 客户端查看表数据 phttps://ftp.postgresql.org/pub/pgadmin/pgadmin4/v3.1/macos/pgadmin4-3.1.dmg
参考
https://hub.docker.com/r/stellar/quickstart/
本文链接:http://www.hihubs.com/article/346
关键字:mac 安装 docker stellar
若无特别注明,文章皆为Hubs'm原创,转载请注明出处...O(∩_∩)O