His Masters' Voices Wiki

よろずのことの書き残し

ユーザ用ツール

サイト用ツール


docker:start

**文書の過去の版を表示しています。**

サーバー関連|Docker環境の構築

概要

VPSで立てたサーバー(Ubuntu)に、Docker環境を構築する。

参考

操作

参考サイトの写経

VPS: WebARENA Indigo Ubuntu20.04

sudo apt update
sudo apt upgrade
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
sudo apt install docker-ce
sudo docker run hello-world
sudo docker run -d -p 8080:80 httpd:latest

docker/start.1658647864.txt.gz · 最終更新: 2022/07/24 16:31 by nipa28