Skip to content

centos7/BCOS-Docker使用问题 #118

@kuangfengxing1hao

Description

@kuangfengxing1hao

我想要查看工作状态
执行"# 连接到容器"这一步,
输入命令:
$ docker exec -it $(docker ps -a | grep bcos-node-0 | awk 'NR==1{print $1}') sh
结果是这样:
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Run a command in a running container
请问是命令出错了吗,请大神帮解决一下

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions