Docker Container just stuck on "Connected"

Naatan

Cadet
Joined
May 11, 2018
Messages
4
I'm trying to follow the guide here:

https://doc.freenas.org/11/vms.html#docker-rancher-vm

I'm at the part where I connect with `cu -l`, problem is when I connect it just says "Connected" and then .. nothing. I can't enter anything (just pressing enter as instructed does nothing).

I've tried restarting both the NAS as well as the VM but no dice. Can anyone recommend how to proceed?
 
D

dlavigne

Guest
Were you able to resolve this? If not, anything related in /var/log/messages?
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
@Naatan Have you already created and used other virtual machines? If not, have you checked your CPU is supported by bhyve and enabled “virtualization” in your m/board’s BIOS?

When you first create a Docker VM a compressed rancheros image file is downloaded in the background. This can fail, so check you have the image file rancheros-bhyve-v1.1.3.img.gz
in directory /mnt/<your pool name>/.bhyve_containers/iso_files
 

nl55873

Cadet
Joined
Nov 8, 2017
Messages
1
I am having the same problem, it seams as though the Docker VM cannot see the internet in order to download the Rancher OS. Not sure but that is sure what seems to be happening. Where you ever able to get Docker to work for you
 

MEGAMENE

Cadet
Joined
Dec 9, 2019
Messages
1
I'm sorry to revive this old thread, but I'm having the same exact problem and I can't find anything online.
I've recently built a NAS with some of my old PC hardware, I'm running a Asus PRIME B450M-A motherboard with a Ryzen 5 2600.
Does anyone have any ideia how to solve this problem?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Since the initial post, FreeNAS has dropped support for Docker VMs and in 11.3 will no longer offer the option.

Your time is best spent doing docker the new way.

Run an Ubuntu VM and put docker on it.
 

alieNus

Dabbler
Joined
Mar 23, 2018
Messages
30
Since the initial post, FreeNAS has dropped support for Docker VMs and in 11.3 will no longer offer the option.

Your time is best spent doing docker the new way.

Run an Ubuntu VM and put docker on it.

can you maybe write up how to switch from RancherOS VM to Ubuntu then in 11.2? I'm mean, I want to use 11.3 but there are no infos how to migrate this docker problem. I expected some more help form freenas team on this. They just removed this function and provided no tutorials on that.
 
Last edited:

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
@alieNus Can't answer your question specifically as I've not made much use of docker. But if you've used docker-compose in conjuction with portainer that would go some way to re-creating your containers. You also need to think about how you've used persistent data - i.e. linked containers to read/write your pool data and how you'll recreate this in any new linux vm.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Isn't there a way to copy all the docker config and import to new linux vm?
Rancher server is the intended way from the Rancher side... but this would mean you have dealt with container data and mounts correctly so that Rancher can do its work of migrating your workloads for you.

If you didn't do that already and aren't running rancher server, then you'll need to do it long-hand.

Find out where each container is storing its data, use docker cp to get the data out (maybe followed by scp to push it on another docker host).

You could then use portainer as suggested by @KrisBee to copy the container configs over.

Best of luck with it.
 

alieNus

Dabbler
Joined
Mar 23, 2018
Messages
30
so what is the best practice for setting up docker envr on FreeNAS? I though RancherOS VM was already the best and lean. I heard some people have FreeNAS on ProxMox but this would be OS in OS, like i had with rancher. :')
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I don't think there is an official one.

An Ubuntu LTS version seems to me to be the best supported docker setup (I personally run rancherOS, Ubuntu, Alpine and a few others too, but not for anything serious enough to matter).

It will depend on how you intend to use docker as to what would be the best way to set it up... perhaps you can be more specific about what you hope to achieve. Performance requirements will change a lot about what you will want to pay attention to.

As you can see from my sig, I run the more "mission critical" docker instances on my ESXi host. I run others on FreeNAS, bit don't bother with rancherOS/Rancher server in those cases.
 

alieNus

Dabbler
Joined
Mar 23, 2018
Messages
30
I don't think there is an official one.

An Ubuntu LTS version seems to me to be the best supported docker setup (I personally run rancherOS, Ubuntu, Alpine and a few others too, but not for anything serious enough to matter).

It will depend on how you intend to use docker as to what would be the best way to set it up... perhaps you can be more specific about what you hope to achieve. Performance requirements will change a lot about what you will want to pay attention to.

As you can see from my sig, I run the more "mission critical" docker instances on my ESXi host. I run others on FreeNAS, bit don't bother with rancherOS/Rancher server in those cases.

Following apps I'm running with 3-4 users on it:
docker:
1581269702126.png


iocage/jails:
1581269737930.png


would probably make sense to move everything to docker in future, so yes, I would need something which runs all this apps on one docker server. Ubuntu 19 VM with docker on it would be good?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I would recommend 18 LTS rather than 19 for a stable setup.

Running Rancher server (optionally) and having all of your container storage connected to NFS shares on the FreeNAS host would be key to flexibility down the track.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
An additional side-bar to this topic would be to note that although docker is highly efficient use of a VM, VM's aren't necessarily efficient uses for FreeNAS when compared to a jail.

Jails will always be able to access storage more easily (nullfs mounts) and will use far less memory and CPU to get to the same result as a docker container in a VM on the same host (if it's possible to run that same thing in a jail... not always the case).
 

alieNus

Dabbler
Joined
Mar 23, 2018
Messages
30
FreeNAS/FreeBSD doesn't have all the apps (e.g. Pi-hole), also I have the feeling, then setting up in portainer is much faster and easier.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
FreeNAS/FreeBSD doesn't have all the apps (e.g. Pi-hole), also I have the feeling, then setting up in portainer is much faster and easier.
If you have the resources to burn, ease of administration in docker is hard to look past. Rancher server is even a step up on portainer and allows clustering with monitoring and failover if you have the need to go that far... at very least enables you to replace or add new VMs easily with little down-time or additional effort.
 
Top