mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
2.4 KiB
2.4 KiB
Docker
Here's how to install docker on different operating systems:
macOS
- Visit Docker Desktop for Mac
- Download the Docker Desktop installer
- Double-click the downloaded
.dmgfile - Drag Docker to your Applications folder
- Open Docker Desktop from Applications
- Follow the onboarding tutorial if desired
Linux
Ubuntu
# Update package index
sudo apt-get update
# Install prerequisites
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
# Add Docker's official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Set up stable repository
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install Docker Engine
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Windows
- Enable WSL2 if not already enabled
- Visit Docker Desktop for Windows
- Download the installer
- Run the installer and follow the prompts
- Start Docker Desktop from the Start menu
Redis
Installation
macOS
brew install redis
Ubuntu
sudo apt-get update
sudo apt-get install redis-server
Windows
- Download the Redis Windows Subsystem for Linux (WSL) package
- Follow WSL installation instructions
- Install Redis through WSL using Ubuntu instructions
Start Redis Server
macOS and Linux
# Start Redis server
redis-server
# To start Redis in the background
redis-server --daemonize yes
# To stop Redis server
redis-cli shutdown
Using Docker
# Pull Redis image
docker pull redis
# Run Redis container
docker run --name my-redis -d -p 6379:6379 redis
# Connect to Redis CLI
docker exec -it my-redis redis-cli
Testing Redis Connection
# Connect to Redis CLI
redis-cli
# Test connection
ping
# Should respond with "PONG"
# Set and get a test value
set test "Hello Redis"
get test
Common Redis Commands
# Set a key
SET key value
# Get a value
GET key
# Delete a key
DEL key
# Check if key exists
EXISTS key
# Set expiration (in seconds)
EXPIRE key seconds
# List all keys
KEYS *
# Get key type
TYPE key