Horje
move docker container from one host to another Code Example
move docker container from one host to another
# Stop the container   
docker stop $CONTAINER

# Create a new image   
docker commit $CONTAINER $CONTAINER

# Save image
docker save -o $CONTAINER.tar $CONTAINER

# Save the volumes (use ".tar.gz" if you want compression)
docker-volumes.sh $CONTAINER save $CONTAINER-volumes.tar

# Copy image and volumes to another host
scp $CONTAINER.tar $CONTAINER-volumes.tar $USER@$HOST:

# On the other host:
docker load -i $CONTAINER.tar
docker create --name $CONTAINER [<PREVIOUS CONTAINER OPTIONS>] $CONTAINER

# Load the volumes
docker-volumes.sh $CONTAINER load $CONTAINER-volumes.tar

# Start container
docker start $CONTAINER




Whatever

Related
how to affect a proprity for an element when hovering on other element Code Example how to affect a proprity for an element when hovering on other element Code Example
switch type golang Code Example switch type golang Code Example
equations to matrix matlab Code Example equations to matrix matlab Code Example
tmux page up mac Code Example tmux page up mac Code Example
flutter move container to top center Code Example flutter move container to top center Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6