Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)Set the maintainer info
| <canvas id="canvas"></canvas> |
| import random | |
| import socket | |
| import struct | |
| import sys | |
| from multiprocessing import Process | |
| HOST = "127.0.0.1" | |
| PORT = 7899 | |
| def random_character() -> str: |
| import asyncio | |
| import time | |
| async def timer(func): | |
| async def wrapper(): | |
| print(f"Task started at {time.strftime('%X')}") | |
| await func() | |
| print(f"Task finished at {time.strftime('%X')}") | |
| return await wrapper() |
Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)Set the maintainer info