Last active
May 16, 2022 02:15
-
-
Save mujicion/4bd9c2fc24a6366ddfec2dc5e38c7976 to your computer and use it in GitHub Desktop.
Run a Portainer container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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