Update Docker Container Image

0 Comments

Use the following commands to updated a desired docker Container with a new image

sudo docker image ls
sudo docker inspect <image_id>
sudo docker ps -a
sudo docker stop <container_id>
sudo docker rm <container_id>
sudo docker rmi <image_id>
docker pull <image_name:image_tag>
docker create <image_name:image_tag>

i.g. TeamSpeak docker creation:

sudo docker pull teamspeak:latest
 sudo docker create -p 9987:9987/udp -p 10011:10011 -p 30033:30033 -e TS3SERVER_LICENSE=accept --restart always --name Teamspeak -v /home/username/teamspeak:/var/ts3server/ teamspeak
Categories:

Leave a Reply

Your email address will not be published. Required fields are marked *