Skip to content

kinogmt/centos-ssh

Repository files navigation

Build Docker Images for CentOS with SSH Access

Dockerfile

Build

Run following command in the directory with Dockerfile above.

% docker build -t centos-ssh .

Run

Start one container simply using docker run command

 % docker run -d -h c1 --name c1

Start multiple containers using docker-compose command

See here.