01 / Valmistele palvelin.
Valitse käyttöjärjestelmä ja sen versio Docker Enginen ja Compose-lisäosan asentamista varten. Hanki Sprution ajantasainen lähdekoodi projektin ylläpitäjältä ja avaa sen juurihakemisto. Docker Desktop ei tarjoa pääsyä macOS:n tai Windowsin järjestelmäkäyttäjien tileihin.
Valitse käyttöjärjestelmä
Valitse ensin käyttöjärjestelmä ja sitten sen versio, niin näet asennuskomennot.
Ubuntu
amd64 / arm64Valitse versio
Ubuntu 26.10 · Stonking
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'ubuntu' ] && [ "$sprutio_os_version" = '26.10' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
amd64|arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: stonking
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetUbuntu 26.04 LTS · Resolute
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'ubuntu' ] && [ "$sprutio_os_version" = '26.04' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
amd64|arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: resolute
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetUbuntu 24.04 LTS · Noble
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'ubuntu' ] && [ "$sprutio_os_version" = '24.04' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
amd64|arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: noble
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetUbuntu 22.04 LTS · Jammy
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'ubuntu' ] && [ "$sprutio_os_version" = '22.04' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
amd64|arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: jammy
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetCentOS
amd64 / arm64Valitse versio
CentOS Stream 10
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'centos' ] && [ "${sprutio_os_version%%.*}" = '10' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(uname -m)" in
x86_64|aarch64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
dnf install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetCentOS Stream 9
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'centos' ] && [ "${sprutio_os_version%%.*}" = '9' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(uname -m)" in
x86_64|aarch64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
dnf install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetDebian
amd64 / arm64Valitse versio
Debian 13 · Trixie
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'debian' ] && [ "$sprutio_os_version" = '13' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
amd64|arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: trixie
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetDebian 12 · Bookworm
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'debian' ] && [ "$sprutio_os_version" = '12' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
amd64|arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: bookworm
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetRaspberry Pi OS
arm64Käytä Raspberry Pi OS:n 64-bittistä versiota. Nämä komennot käyttävät Dockerin virallista Debian arm64 -pakettivarastoa; 32-bittinen versio ei kuulu näiden ohjeiden piiriin.
Valitse versio
Raspberry Pi OS Trixie · arm64
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'debian' ] && [ "$sprutio_os_version" = '13' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: trixie
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetRaspberry Pi OS Bookworm · arm64
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'debian' ] && [ "$sprutio_os_version" = '12' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(dpkg --print-architecture)" in
arm64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
cat > /etc/apt/sources.list.d/docker.sources <<DOCKER_REPOSITORY
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: bookworm
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER_REPOSITORY
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetFedora
amd64 / arm64Valitse versio
Fedora 44
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'fedora' ] && [ "$sprutio_os_version" = '44' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(uname -m)" in
x86_64|aarch64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
dnf install dnf5-plugins
dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetFedora 43
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'fedora' ] && [ "$sprutio_os_version" = '43' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(uname -m)" in
x86_64|aarch64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
dnf install dnf5-plugins
dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetRHEL
amd64 / arm64Käytä rekisteröityä RHEL-järjestelmää, jolla on pääsy sen vakiopakettivarastoihin.
Valitse versio
RHEL 10
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'rhel' ] && [ "${sprutio_os_version%%.*}" = '10' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(uname -m)" in
x86_64|aarch64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
dnf install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetRHEL 9
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'rhel' ] && [ "${sprutio_os_version%%.*}" = '9' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(uname -m)" in
x86_64|aarch64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
dnf install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeetRHEL 8
Suorita nämä komennot root-käyttäjänä palvelimella, jolle ei ole asennettu konttimoottoria. Ne asentavat Docker Enginen, Buildxin ja Docker Compose -lisäosan, käynnistävät Dockerin ja tarkistavat asennetut versiot.
(
set -eu
[ "$(id -u)" = 0 ] || { printf '%s\n' 'Run these commands as root.' >&2; exit 1; }
. /etc/os-release
sprutio_os_version=${VERSION_ID:-}
[ "${ID:-}" = 'rhel' ] && [ "${sprutio_os_version%%.*}" = '8' ] || {
printf '%s\n' 'OS/version does not match the selected instructions.' >&2
exit 1
}
case "$(uname -m)" in
x86_64|aarch64) ;;
*) printf '%s\n' 'Unsupported architecture for these instructions.' >&2; exit 1 ;;
esac
dnf install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
docker version
docker compose version
)Jos Docker, containerd tai Podman on jo asennettu, noudata virallisia siirtymisohjeita ennen jatkamista.
Dockerin viralliset asennusohjeet02 / Rakenna ja käynnistä.
Suorita nämä komennot root-käyttäjänä Sprution lähdekoodihakemistossa, jossa compose.yaml sijaitsee. Sovellus rakennetaan lähdekoodista ja käynnistetään app-palveluna.
docker compose build
docker compose up -d03 / Tarkista sovellus.
Tarkista palvelun tila ja viimeisimmät lokimerkinnät. Oletusosoite on http://SERVER_IP:8080. Rajaa pääsy luotettuun verkkoon tai järjestä suojattu yhteys ennen kirjautumistietojen syöttämistä.
docker compose ps
docker compose logs --tail=100 app04 / Kirjaudu Linux-käyttäjätilillä.
Käytä Linux-palvelimen käyttäjätilin tunnusta ja salasanaa. Tilillä on oltava salasana ja sallittu komentotulkki; lukitut tilit ja tyhjät salasanat hylätään. Root-kirjautuminen antaa root-oikeudet. Palvelimen tiedostot liitetään /host-hakemistoon, ja toiminnot suoritetaan kirjautuneen käyttäjän oikeuksilla.
Järjestä suojattu etäkäyttö.
Sovellus käyttää oletuksena salaamatonta HTTP-yhteyttä. Salasanat ja istunnot tarvitsevat suojatun verkkoyhteyden. Käytä luotettua verkkoa tai SSH-tunnelia. Jos julkaiset sovelluksen verkkoon, määritä sen eteen HTTPS ja varmista sen toiminta. Tämän sivuston HTTPS ei määritä tiedostonhallintasi HTTPS-yhteyttä.
Säilytä asetukset käynnistysten välillä.
app_data-taltio sisältää käyttäjien asetukset ja tallennetut yhteydet. Varmuuskopioi se yhdessä määritysten kanssa; palvelimen tiedostot tarvitsevat oman varmuuskopionsa. Alla olevat komennot pysäyttävät ja käynnistävät palvelun. Päivitä hakemalla tarkistettu lähdekoodiversio, rakentamalla sovellus uudelleen ja käynnistämällä se. Poista datataltio vain, jos haluat tarkoituksella tyhjentää sen sisällön.
docker compose stop
docker compose start
