Linux 初始化
本文最后更新于:2024年9月8日 晚上
Linux 初始化
CentOS
1
| $ docker run -d --name centos -h centos centos:7 /sbin/init
|
包含桌面环境和 vnc 服务
1 2 3 4
| $ docker run -d -name centos_vnc \ --hostname centos_vnc \ --user 0 -p 6911:6901 \ consol/centos-xfce-vnc
|
Ubuntu
1
| $ docker run -d --name ubuntu -h ubuntu ubuntu:18.04 /bin/bash
|
包含桌面环境以及 vnc 服务
1 2 3 4 5 6 7
| $ docker run -d -p 6080:80 \ -p 5900:5900 \ --name ubuntu_vnc \ --hostname ubuntu_vnc \ -v /dev/shm:/dev/shm \ dorowu/ubuntu-desktop-lxde-vnc
|
Fedora
1
| $ docker run -d --name fedora -h fedora fedora bash
|