Skip to content

set up docker os

Olga Naumenko edited this page May 17, 2023 · 3 revisions

Set up Docker and run a container with Ubuntu 18.04

Install Docker using the instructions for your OS:

Run a Docker container with Ubuntu 18.04:

  1. Create a container:
docker container create -i -t -p 5522:22 -p 5521:2121 --name utbot ubuntu:18.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
Clone this wiki locally