Skip to content

Instantly share code, notes, and snippets.

@mujicion
Last active May 16, 2022 02:15
Show Gist options
  • Select an option

  • Save mujicion/4bd9c2fc24a6366ddfec2dc5e38c7976 to your computer and use it in GitHub Desktop.

Select an option

Save mujicion/4bd9c2fc24a6366ddfec2dc5e38c7976 to your computer and use it in GitHub Desktop.
Run a Portainer container
firewall-cmd --permanent --zone=block --add-port={8000,9443}/tcp
firewall-cmd --reload
docker run -d -p 8000:8000 -p 9443:9443 --name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:2.9.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment