Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker run command

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Docker run-- name centos7-2-it-v / data1:/cdata-d centos / bin/bash

-- name of the name centos7-2 running container

-I: runs the container in interactive mode, usually in conjunction with-t

-t: reassign a pseudo-input terminal to the container, usually used in conjunction with-I

-v / data1:/cdata: bind a volume. Directory of docker host: directory of virtual machines in the container.

-d: runs the container in the background and returns the container ID

/ bin/bash: execute the / bin/bash command within the container

Detailed reference: https://www.runoob.com/docker/docker-run-command.html![]

(https://cache.yisu.com/upload/information/20200309/33/61820.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report