Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 825 Bytes

set-up-docker-os.md

File metadata and controls

36 lines (32 loc) · 825 Bytes

Set up Docker and run a container with Ubuntu 20.04

Install Docker using the instructions for your OS:

Run a Docker container with Ubuntu 20.04:

  1. Create a container:
docker container create -i -t -p 5522:22 -p 5521:2121 --name utbot ubuntu:20.04
docker start utbot
  1. Navigate to a container:
docker exec -it utbot /bin/bash
  1. Create a user:
useradd -m utbot
usermod -aG sudo utbot
  1. Set the user password:
passwd utbot
  1. Install the OpenSSH server:
apt update && apt install  openssh-server sudo -y
  1. Set up an SSH connection:
service ssh start