Ubuntu docker-compose.yml example

From wikieduonline
Revision as of 16:26, 16 July 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Running two Ubuntu instances:

version: "3.3"

services:
 Ubuntu1:
       image: ubuntu
       container_name: Ubuntu_container_1
       hostname: Ubuntu_container_1
       restart: always
       stdin_open: true # docker run -i
       tty: true        # docker run -t

 Ubuntu2:
       image: ubuntu
       container_name: Ubuntu_container_2
       hostname: Ubuntu_container_2
       restart: always
       stdin_open: true # docker run -i
       tty: true        # docker run -t


Related terms[edit]

See also[edit]

Advertising: