Deepin15.11下安装Docker 在下载docker之前建议将deepin软件源更换一下,我这里更换的是阿里镜像源
# 编辑/etc/apt/sources.list文件
sudo dedit /etc/apt/sources.list
# 插入下面的内容
deb [by-hash=force] http://mirrors.aliyun.com/deepin lion main contrib non-free# 修改完成查看下:
cat /etc/apt/sources.list
## Generated by deepin-installer
#deb [by-hash=force] http://packages.deepin.com/deepin lion main contrib non-free
deb [by-hash=force] http://mirrors.aliyun.com/deepin lion main contrib non-free
#deb-src http://packages.deepin.com/deepin lion main contrib non-free# 执行更新操作
sudo apt-get update
开始下载安装docker
sudo apt-get install docker-ce
安装完成测试一下
sudo docker
Usage: docker [OPTIONS] COMMANDA self-sufficient runtime for containersOptions:
--config stringLocation of client config files (default "/home/zhihan/.docker")
-D, --debugEnable debug mode
-H, --host listDaemon socket(s) to connect to
-l, --log-level stringSet the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tlsUse TLS;
implied by --tlsverify
--tlscacert stringTrust certs signed only by this CA (default "/home/zhihan/.docker/ca.pem")
--tlscert stringPath to TLS certificate file (default "/home/zhihan/.docker/cert.pem")
--tlskey stringPath to TLS key file (default "/home/zhihan/.docker/key.pem")
--tlsverifyUse TLS and verify the remote
-v, --versionPrint version information and quitManagement Commands:
builderManage builds
configManage Docker configs
containerManage containers
engineManage the docker engine
imageManage images
networkManage networks
nodeManage Swarm nodes
pluginManage plugins
secretManage Docker secrets
serviceManage services
stackManage Docker stacks
swarmManage Swarm
systemManage Docker
trustManage trust on Docker images
volumeManage volumesCommands:
attachAttach local standard input, output, and error streams to a running container
buildBuild an image from a Dockerfile
commitCreate a new image from a container's changes
cpCopy files/folders between a container and the local filesystem
createCreate a new container
deployDeploy a new stack or update an existing stack
diffInspect changes to files or directories on a container's filesystem
eventsGet real time events from the server
execRun a command in a running container
exportExport a container's filesystem as a tar archive
historyShow the history of an image
imagesList images
importImport the contents from a tarball to create a filesystem image
infoDisplay system-wide information
inspectReturn low-level information on Docker objects
killKill one or more running containers
loadLoad an image from a tar archive or STDIN
loginLog in to a Docker registry
logoutLog out from a Docker registry
logsFetch the logs of a container
pausePause all processes within one or more containers
portList port mappings or a specific mapping for the container
psList containers
pullPull an image or a repository from a registry
pushPush an image or a repository to a registry
renameRename a container
restartRestart one or more containers
rmRemove one or more containers
rmiRemove one or more images
runRun a command in a new container
saveSave one or more images to a tar archive (streamed to STDOUT by default)
searchSearch the Docker Hub for images
startStart one or more stopped containers
statsDisplay a live stream of container(s) resource usage statistics
stopStop one or more running containers
tagCreate a tag TARGET_IMAGE that refers to SOURCE_IMAGE
topDisplay the running processes of a container
unpauseUnpause all processes within one or more containers
updateUpdate configuration of one or more containers
versionShow the Docker version information
waitBlock until one or more containers stop, then print their exit codesRun 'docker COMMAND --help' for more information on a command.
【Deepin15.11下安装Docker】******* 到此安装完成*******
推荐阅读
- linux|2022年云原生趋势
- 个人日记|K8s中Pod生命周期和重启策略
- k8s|k8s(六)(配置管理与集群安全机制)
- Go|Docker后端部署详解(Go+Nginx)
- docker|Docker
- 【快速学习】docker构建java项目实践
- Alpine Docker 安装 bash
- docker|docker导入dmp文件到oracle容器
- 阿里云docker开发者平台镜像上传和下载
- 工具|dockers 自定义tomcat