Home  >  Article  >  Operation and Maintenance  >  How to start docker in ubuntu

How to start docker in ubuntu

尚
Original
2020-03-28 15:25:1410839browse

How to start docker in ubuntu

You can use the docker version command to check whether docker is started:

How to start docker in ubuntu

##Start the docker service:

>> su root #切换到root用户
>> systemctl enable docker #设置开机自动启用docker服务
>> systemctl start docker #启动docker 服务

Start docker Container

>> docker run -i -t ubuntu /bin/bash

For more related tutorials, please pay attention to the

docker tutorial column on the PHP Chinese website.

The above is the detailed content of How to start docker in ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn